| 101 | */ |
| 102 | template <typename T = DefaultResolution> |
| 103 | double tick() |
| 104 | { |
| 105 | auto now = Clock::now(); |
| 106 | auto duration = std::chrono::duration<double, T>(now - previous_tick); |
| 107 | previous_tick = now; |
| 108 | return duration.count(); |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * @brief Check if the timer is running |
no outgoing calls
no test coverage detected