| 140 | } |
| 141 | |
| 142 | void Timer::set_resolution(std::chrono::milliseconds resolution) { |
| 143 | using namespace std::chrono; |
| 144 | SetTimer(m_hwnd, m_id, static_cast<UINT>(resolution.count()), timer_proc); |
| 145 | current_resolution = resolution; |
| 146 | } |
| 147 | |
| 148 | void Timer::stop_timer() { |
| 149 | SetTimer(m_hwnd, m_id, USER_TIMER_MAXIMUM, timer_proc); |
no test coverage detected