Changeset 89762 in vbox for trunk/src/VBox/Runtime/testcase
- Timestamp:
- Jun 17, 2021 9:39:11 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstTimer.cpp
r82968 r89762 57 57 gcTicks++; 58 58 59 if (iTick != gcTicks) 60 RTPrintf("tstTimer: FAILURE - iTick=%llu expected %u\n", iTick, gcTicks); 61 59 62 const uint64_t u64Now = RTTimeNanoTS(); 60 63 if (gu64Prev) … … 162 165 gu64Prev = 0; 163 166 RT_ZERO(cFrequency); 164 #ifdef RT_OS_WINDOWS165 if (aTests[i].uMicroInterval < 1000)166 continue;167 rc = RTTimerCreate(&pTimer, aTests[i].uMicroInterval / 1000, TimerCallback, NULL);168 #else169 167 rc = RTTimerCreateEx(&pTimer, aTests[i].uMicroInterval * (uint64_t)1000, 0, TimerCallback, NULL); 170 #endif171 168 if (RT_FAILURE(rc)) 172 169 { … … 180 177 */ 181 178 uTSBegin = RTTimeNanoTS(); 182 #ifndef RT_OS_WINDOWS183 179 rc = RTTimerStart(pTimer, 0); 184 180 if (RT_FAILURE(rc)) … … 187 183 cErrors++; 188 184 } 189 #endif190 185 191 186 while (RTTimeNanoTS() - uTSBegin < (uint64_t)aTests[i].uMilliesWait * 1000000)
Note:
See TracChangeset
for help on using the changeset viewer.