| 293 | // |
| 294 | |
| 295 | bool TimeElapsed(DWORD Milliseconds) |
| 296 | { |
| 297 | bool bTimeElapsed = false; |
| 298 | |
| 299 | #ifdef TEST_PLATFORM_WINDOWS |
| 300 | if(GetTickCount() > (TickCount + Milliseconds)) |
| 301 | { |
| 302 | TickCount = GetTickCount(); |
| 303 | if(TestInterlockedIncrement(&TimeTrigger) == 1) |
| 304 | { |
| 305 | bTimeElapsed = true; |
| 306 | } |
| 307 | } |
| 308 | |
| 309 | #endif |
| 310 | return bTimeElapsed; |
| 311 | } |
| 312 | |
| 313 | // |
| 314 | // Printing functions |
no test coverage detected