VirtualBox

Changeset 28459 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Apr 19, 2010 12:49:13 PM (15 years ago)
Author:
vboxsync
Message:

time-win.cpp: Fixed 1000000 scale down bug in RTTimeSystemMilliTS (always) and RTTimeMilliTS when not in a VM process. Been causing trouble since r14735.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/time-win.cpp

    r26212 r28459  
    9898    if (QueryPerformanceCounter(&ll))
    9999        return (ll.QuadPart * uMult) / llFreq.QuadPart;
    100     else
    101         return (uint64_t)GetTickCount() * (uint64_t)1000000;
     100    return (uint64_t)GetTickCount() * (uint64_t)1000000;
    102101
    103102#elif defined USE_FILE_TIME
     
    147146RTDECL(uint64_t) RTTimeSystemMilliTS(void)
    148147{
    149     return rtTimeGetSystemNanoTS();
     148    return rtTimeGetSystemNanoTS() / 1000000;
    150149}
    151150
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette