VirtualBox

Changeset 72863 in vbox for trunk/src/VBox/Runtime/gc


Ignore:
Timestamp:
Jul 4, 2018 10:13:40 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123408
Message:

IPRT: RTTimeProgramXxxx must all be derived from the nanosecond timestamp or we may get rounding errors. This happened when mixing the ring-0 formatted 'msprog' and 'timeprog' prefixes with ones from ring-3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/gc/initterm-gc.cpp

    r69111 r72863  
    4848uint64_t    g_u64ProgramStartNanoTS;
    4949
    50 /**
    51  * Program start microsecond TS.
    52  */
    53 uint64_t    g_u64ProgramStartMicroTS;
    54 
    55 /**
    56  * Program start millisecond TS.
    57  */
    58 uint64_t    g_u64ProgramStartMilliTS;
    59 
    6050
    6151/**
     
    7262     */
    7363    g_u64ProgramStartNanoTS = u64ProgramStartNanoTS;
    74     g_u64ProgramStartMicroTS = u64ProgramStartNanoTS / 1000;
    75     g_u64ProgramStartMilliTS = u64ProgramStartNanoTS / 1000000;
    7664
    7765    LogFlow(("RTGCInit: returns VINF_SUCCESS\n"));
Note: See TracChangeset for help on using the changeset viewer.

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