| 15 | namespace { |
| 16 | |
| 17 | void TerminateAfterTimedTest(uint32_t timed, DWORD timeoutMilliseconds) |
| 18 | { |
| 19 | wchar_t timedArg[128]; |
| 20 | _snwprintf_s(timedArg, _TRUNCATE, L"%u", timed); |
| 21 | |
| 22 | PresentMon pm; |
| 23 | pm.Add(L"--stop_existing_session --terminate_after_timed --timed"); |
| 24 | pm.Add(timedArg); |
| 25 | pm.PMSTART(); |
| 26 | pm.PMEXITED(timeoutMilliseconds, 0); |
| 27 | |
| 28 | // We don't check the CSV... it's ok if buffers drain adn we get more data |
| 29 | } |
| 30 | |
| 31 | void TerminateExistingTest(wchar_t const* sessionName) |
| 32 | { |