- Timestamp:
- Mar 23, 2023 8:23:39 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/darwin/time-darwin.cpp
r99108 r99127 54 54 * Global Variables * 55 55 *********************************************************************************************************************************/ 56 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)57 56 static struct mach_timebase_info g_Info = { 0, 0 }; 58 57 static double g_rdFactor = 0.0; … … 77 76 } 78 77 } 79 #endif80 78 81 79 … … 86 84 DECLINLINE(uint64_t) rtTimeGetSystemNanoTS(void) 87 85 { 88 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)89 86 /* Lazy init. */ 90 87 if (RT_UNLIKELY(g_Info.denom == 0 && !g_fFailedToGetTimeBaseInfo)) … … 104 101 return (uint64_t)tv.tv_sec * RT_NS_1SEC_64 105 102 + (uint64_t)(tv.tv_usec * RT_NS_1US); 106 #else107 return clock_gettime_nsec_np(CLOCK_UPTIME_RAW);108 #endif109 103 } 110 104
Note:
See TracChangeset
for help on using the changeset viewer.