VirtualBox

Changeset 52822 in vbox for trunk/src/VBox/Runtime/r3/haiku


Ignore:
Timestamp:
Sep 23, 2014 10:25:34 AM (10 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/r3/haiku/time-haiku.cpp

    r45356 r52822  
    55
    66/*
    7  * Copyright (C) 2012-2013 Oracle Corporation
     7 * Copyright (C) 2012-2014 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    4444DECLINLINE(uint64_t) rtTimeGetSystemNanoTS(void)
    4545{
    46     return (uint64_t)system_time() * 1000;
     46    return (uint64_t)system_time() * RT_NS_1US;
    4747}
    4848
     
    7272RTDECL(uint64_t) RTTimeSystemMilliTS(void)
    7373{
    74     return rtTimeGetSystemNanoTS() / 1000000;
     74    return rtTimeGetSystemNanoTS() / RT_NS_1MS;
    7575}
    7676
     
    8383    return VINF_SUCCESS;
    8484}
     85
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