Changeset 9240 in vbox for trunk/src/VBox
- Timestamp:
- May 29, 2008 10:52:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/time-r0drv-linux.c
r9239 r9240 44 44 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 16) 45 45 /* 46 * Use ktime_get , this is also what clock_gettime(CLOCK_MONOTONIC,) is using.46 * Use ktime_get_ts, this is also what clock_gettime(CLOCK_MONOTONIC,) is using. 47 47 */ 48 ktime_t Kt = ktime_get();49 struct timespec Ts = ktime_to_timespec(Kt);50 uint64_t u64 = Ts.tv_sec * UINT64_C(1000000000)51 48 uint64_t u64; 49 struct timespec Ts; 50 ktime_get_ts(&Ts); 51 u64 = Ts.tv_sec * UINT64_C(1000000000) + Ts.tv_nsec; 52 52 return u64; 53 53
Note:
See TracChangeset
for help on using the changeset viewer.