Changeset 52822 in vbox for trunk/src/VBox/Runtime/r0drv/darwin
- 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/darwin/time-r0drv-darwin.cpp
r48935 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 … … 68 68 RTDECL(uint64_t) RTTimeMilliTS(void) 69 69 { 70 return rtTimeGetSystemNanoTS() / 1000000;70 return rtTimeGetSystemNanoTS() / RT_NS_1MS; 71 71 } 72 72 … … 80 80 RTDECL(uint64_t) RTTimeSystemMilliTS(void) 81 81 { 82 return rtTimeGetSystemNanoTS() / 1000000;82 return rtTimeGetSystemNanoTS() / RT_NS_1MS; 83 83 } 84 84 … … 94 94 #endif 95 95 clock_get_calendar_nanotime(&uSecs, &uNanosecs); 96 return RTTimeSpecSetNano(pTime, (uint64_t)uSecs * 1000000000+ uNanosecs);96 return RTTimeSpecSetNano(pTime, (uint64_t)uSecs * RT_NS_1SEC + uNanosecs); 97 97 } 98 98
Note:
See TracChangeset
for help on using the changeset viewer.