VirtualBox

Ignore:
Timestamp:
Sep 23, 2014 10:25:34 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
96224
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/haiku/time-r0drv-haiku.c

    r43403 r52822  
    55
    66/*
    7  * Copyright (C) 2012 Oracle Corporation
     7 * Copyright (C) 2012-2014 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3939DECLINLINE(uint64_t) rtTimeGetSystemNanoTS(void)
    4040{
    41     return system_time() * 1000;
     41    return system_time() * RT_NS_1US;
    4242}
    4343
     
    4545DECLINLINE(uint64_t) rtTimeGetSystemMilliTS(void)
    4646{
    47     return system_time() / 1000;
     47    return system_time() / RT_NS_1US;
    4848}
    4949
     
    7575RTDECL(PRTTIMESPEC) RTTimeNow(PRTTIMESPEC pTime)
    7676{
    77     return RTTimeSpecSetNano(pTime, real_time_clock_usecs() * 1000);
     77    return RTTimeSpecSetNano(pTime, real_time_clock_usecs() * RT_NS_1US);
    7878}
    7979
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