| 47 | } |
| 48 | |
| 49 | double Timer::getTime(const Timer::timer_info& info) { |
| 50 | if (info.running) { |
| 51 | return seconds{info.time + (clock_type::now() - info.started)}.count(); |
| 52 | } |
| 53 | return seconds{info.time}.count(); |
| 54 | } |
| 55 | |
| 56 | double Timer::getTotalTime(const Timer::timer_info& info) { |
| 57 | if (info.running) { |