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