| 32 | } |
| 33 | |
| 34 | void WindowUtilities::Wait(long wait_in_milliseconds) { |
| 35 | clock_t end = clock() + wait_in_milliseconds; |
| 36 | do { |
| 37 | MSG msg; |
| 38 | if (::PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { |
| 39 | ::TranslateMessage(&msg); |
| 40 | ::DispatchMessage(&msg); |
| 41 | } |
| 42 | ::Sleep(0); |
| 43 | } while (clock() < end); |
| 44 | } |
| 45 | |
| 46 | void WindowUtilities::WaitWithoutMsgPump(long wait_in_milliseconds) { |
| 47 | ::Sleep(wait_in_milliseconds); |
nothing calls this directly
no outgoing calls
no test coverage detected