Changeset 16331 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jan 28, 2009 8:27:11 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/time-r0drv-darwin.cpp
r8245 r16331 120 120 RTDECL(PRTTIMESPEC) RTTimeNow(PRTTIMESPEC pTime) 121 121 { 122 uint32_t u32Secs; 123 uint32_t u32Nanosecs; 124 clock_get_calendar_nanotime(&u32Secs, &u32Nanosecs); 125 return RTTimeSpecSetNano(pTime, (uint64_t)u32Secs * 1000000000 + u32Nanosecs); 122 #if MAC_OS_X_VERSION_MIN_REQUIRED < 1060 123 uint32_t uSecs; 124 uint32_t uNanosecs; 125 #else 126 clock_sec_t uSecs; 127 clock_nsec_t uNanosecs; 128 #endif 129 clock_get_calendar_nanotime(&uSecs, &uNanosecs); 130 return RTTimeSpecSetNano(pTime, (uint64_t)uSecs * 1000000000 + uNanosecs); 126 131 } 127 132
Note:
See TracChangeset
for help on using the changeset viewer.