VirtualBox

Changeset 63347 in vbox for trunk/src/VBox/Runtime/r0drv


Ignore:
Timestamp:
Aug 11, 2016 9:28:09 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109981
Message:

time-r0drv-netbsd.c: Use named constants to convert time. Reduces the
diff to the FreeBSD original code too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/netbsd/time-r0drv-netbsd.c

    r63345 r63347  
    4343    struct timespec tsp;
    4444    nanotime(&tsp);
    45     return tsp.tv_sec * UINT64_C(1000000000)
     45    return tsp.tv_sec * RT_NS_1SEC_64
    4646         + tsp.tv_nsec;
    4747}
     
    5050RTDECL(uint64_t) RTTimeMilliTS(void)
    5151{
    52     return RTTimeNanoTS() / 1000000;
     52    return RTTimeNanoTS() / RT_NS_1MS;
    5353}
    5454
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