| 22 | } |
| 23 | |
| 24 | void Timer::Start(int timeoutMilliseconds, bool repeat) |
| 25 | { |
| 26 | Stop(); |
| 27 | |
| 28 | TimerId = DisplayWindow::StartTimer(timeoutMilliseconds, [=]() { |
| 29 | if (!repeat) |
| 30 | Stop(); |
| 31 | if (FuncExpired) |
| 32 | FuncExpired(); |
| 33 | }); |
| 34 | } |
| 35 | |
| 36 | void Timer::Stop() |
| 37 | { |
no outgoing calls
no test coverage detected