VirtualBox

Changeset 10948 in vbox


Ignore:
Timestamp:
Jul 29, 2008 6:32:21 PM (17 years ago)
Author:
vboxsync
Message:

tstTimer: windows doesn't have the extended timer API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstTimer.cpp

    r10946 r10948  
    152152        gu64Min = UINT64_MAX;
    153153        gu64Prev = 0;
     154#ifdef RT_OS_WINDOWS
     155        rc = RTTimerCreate(&pTimer, aTests[i].uMilliesInterval, TimerCallback, NULL);
     156#else
    154157        rc = RTTimerCreateEx(&pTimer, aTests[i].uMilliesInterval * (uint64_t)1000000, 0, TimerCallback, NULL);
     158#endif
    155159        if (RT_FAILURE(rc))
    156160        {
     
    164168         */
    165169        uint64_t uTSBegin = RTTimeNanoTS();
     170#ifndef RT_OS_WINDOWS
    166171        rc = RTTimerStart(pTimer, 0);
    167172        if (RT_FAILURE(rc))
     
    170175            cErrors++;
    171176        }
     177#endif
    172178
    173179        while (RTTimeNanoTS() - uTSBegin < (uint64_t)aTests[i].uMilliesWait * 1000000)
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