VirtualBox

Ignore:
Timestamp:
Sep 23, 2014 10:25:34 AM (10 years ago)
Author:
vboxsync
Message:

Runtime: Fix RTTimeMilliTS() on FreeBSD. Use macros for time units rather than hardcoded values.

File:
1 edited

Legend:

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

    r18972 r52822  
    4343    struct timespec tsp;
    4444    nanouptime(&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() / 1000;
     52    return RTTimeNanoTS() / RT_NS_1MS;
    5353}
    5454
     
    7272    return RTTimeSpecSetTimespec(pTime, &tsp);
    7373}
     74
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