| 25 | #include <ctime> |
| 26 | |
| 27 | void wait(long millis) |
| 28 | { |
| 29 | clock_t end = clock() + millis; |
| 30 | do { |
| 31 | MSG msg; |
| 32 | if (PeekMessage( &msg, NULL, 0, 0, PM_REMOVE)) { |
| 33 | TranslateMessage(&msg); |
| 34 | DispatchMessage(&msg); |
| 35 | } |
| 36 | Sleep(0); |
| 37 | } while (clock() < end); |
| 38 | } |
| 39 | |
| 40 | void waitWithoutMsgPump(long millis) |
| 41 | { |
no outgoing calls
no test coverage detected