Changeset 52822 in vbox for trunk/src/VBox/Runtime/r3/darwin/time-darwin.cpp
- 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/r3/darwin/time-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 … … 89 89 struct timeval tv; 90 90 gettimeofday(&tv, NULL); 91 return (uint64_t)tv.tv_sec * (uint64_t)(1000 * 1000 * 1000)92 + (uint64_t)(tv.tv_usec * 1000);91 return (uint64_t)tv.tv_sec * RT_NS_1SEC_64 92 + (uint64_t)(tv.tv_usec * RT_NS_1US); 93 93 } 94 94 … … 102 102 RTDECL(uint64_t) RTTimeSystemMilliTS(void) 103 103 { 104 return rtTimeGetSystemNanoTS() / 1000000;104 return rtTimeGetSystemNanoTS() / RT_NS_1MS; 105 105 } 106 106
Note:
See TracChangeset
for help on using the changeset viewer.