Changeset 52822 in vbox for trunk/src/VBox/Runtime/r0drv/linux
- Timestamp:
- Sep 23, 2014 10:25:34 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 96224
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/time-r0drv-linux.c
r44528 r52822 5 5 6 6 /* 7 * Copyright (C) 2006-201 0Oracle Corporation7 * Copyright (C) 2006-2014 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 46 46 struct timespec Ts; 47 47 ktime_get_ts(&Ts); 48 u64 = Ts.tv_sec * UINT64_C(1000000000)+ Ts.tv_nsec;48 u64 = Ts.tv_sec * RT_NS_1SEC_64 + Ts.tv_nsec; 49 49 return u64; 50 50 … … 149 149 RTDECL(uint64_t) RTTimeMilliTS(void) 150 150 { 151 return rtTimeGetSystemNanoTS() / 1000000;151 return rtTimeGetSystemNanoTS() / RT_NS_1MS; 152 152 } 153 153 RT_EXPORT_SYMBOL(RTTimeMilliTS); … … 163 163 RTDECL(uint64_t) RTTimeSystemMilliTS(void) 164 164 { 165 return rtTimeGetSystemNanoTS() / 1000000;165 return rtTimeGetSystemNanoTS() / RT_NS_1MS; 166 166 } 167 167 RT_EXPORT_SYMBOL(RTTimeSystemMilliTS);
Note:
See TracChangeset
for help on using the changeset viewer.