Changeset 10948 in vbox
- Timestamp:
- Jul 29, 2008 6:32:21 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstTimer.cpp
r10946 r10948 152 152 gu64Min = UINT64_MAX; 153 153 gu64Prev = 0; 154 #ifdef RT_OS_WINDOWS 155 rc = RTTimerCreate(&pTimer, aTests[i].uMilliesInterval, TimerCallback, NULL); 156 #else 154 157 rc = RTTimerCreateEx(&pTimer, aTests[i].uMilliesInterval * (uint64_t)1000000, 0, TimerCallback, NULL); 158 #endif 155 159 if (RT_FAILURE(rc)) 156 160 { … … 164 168 */ 165 169 uint64_t uTSBegin = RTTimeNanoTS(); 170 #ifndef RT_OS_WINDOWS 166 171 rc = RTTimerStart(pTimer, 0); 167 172 if (RT_FAILURE(rc)) … … 170 175 cErrors++; 171 176 } 177 #endif 172 178 173 179 while (RTTimeNanoTS() - uTSBegin < (uint64_t)aTests[i].uMilliesWait * 1000000)
Note:
See TracChangeset
for help on using the changeset viewer.