VirtualBox

Changeset 89762 in vbox for trunk/src/VBox/Runtime/testcase


Ignore:
Timestamp:
Jun 17, 2021 9:39:11 AM (4 years ago)
Author:
vboxsync
Message:

Runtime/r3/win/timer-win.cpp: Implement RTTimerCreateEx, RTTimerStart and RTTimerStop as well as removing code paths unused for a very long time

File:
1 edited

Legend:

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

    r82968 r89762  
    5757    gcTicks++;
    5858
     59    if (iTick != gcTicks)
     60        RTPrintf("tstTimer: FAILURE - iTick=%llu expected %u\n", iTick, gcTicks);
     61
    5962    const uint64_t u64Now = RTTimeNanoTS();
    6063    if (gu64Prev)
     
    162165        gu64Prev = 0;
    163166        RT_ZERO(cFrequency);
    164 #ifdef RT_OS_WINDOWS
    165         if (aTests[i].uMicroInterval < 1000)
    166             continue;
    167         rc = RTTimerCreate(&pTimer, aTests[i].uMicroInterval / 1000, TimerCallback, NULL);
    168 #else
    169167        rc = RTTimerCreateEx(&pTimer, aTests[i].uMicroInterval * (uint64_t)1000, 0, TimerCallback, NULL);
    170 #endif
    171168        if (RT_FAILURE(rc))
    172169        {
     
    180177         */
    181178        uTSBegin = RTTimeNanoTS();
    182 #ifndef RT_OS_WINDOWS
    183179        rc = RTTimerStart(pTimer, 0);
    184180        if (RT_FAILURE(rc))
     
    187183            cErrors++;
    188184        }
    189 #endif
    190185
    191186        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