Changeset 46223 in vbox for trunk/src/VBox/Runtime/r0drv/nt
- Timestamp:
- May 22, 2013 5:18:47 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 85951
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/nt/time-r0drv-nt.cpp
r44529 r46223 36 36 DECLINLINE(uint64_t) rtTimeGetSystemNanoTS(void) 37 37 { 38 #ifndef IPRT_TARGET_NT4 38 /* 39 * Note! The time source we use here must be exactly the same as in 40 * the ring-3 code! 41 */ 42 #if 0 43 # ifndef IPRT_TARGET_NT4 39 44 ULONGLONG InterruptTime = KeQueryInterruptTime(); 40 45 return (uint64_t)InterruptTime * 100; /* The value is in 100ns, convert to ns units. */ 41 # else46 # else 42 47 LARGE_INTEGER InterruptTime; 43 48 do … … 48 53 49 54 return (uint64_t)InterruptTime.QuadPart * 100; 55 # endif 56 #else 57 LARGE_INTEGER Tick; 58 KeQueryTickCount(&Tick); 59 return (uint64_t)Tick.QuadPart * KeQueryTimeIncrement() * 100; 50 60 #endif 51 61 }
Note:
See TracChangeset
for help on using the changeset viewer.