| 54 | } |
| 55 | |
| 56 | double Timer::getTotalTime(const Timer::timer_info& info) { |
| 57 | if (info.running) { |
| 58 | return seconds{info.total_time + (clock_type::now() - info.started)}.count(); |
| 59 | } |
| 60 | return seconds{info.total_time}.count(); |
| 61 | } |
| 62 | |
| 63 | double Timer::resetTime(Timer::timer_info& info) { |
| 64 | auto current_duration = info.time; |