| 39 | } |
| 40 | |
| 41 | void timer::throw_if_empty(const char* error_message) const { |
| 42 | if (static_cast<bool>(m_state)) { |
| 43 | return; |
| 44 | } |
| 45 | |
| 46 | throw errors::empty_timer(error_message); |
| 47 | } |
| 48 | |
| 49 | std::chrono::milliseconds timer::get_due_time() const { |
| 50 | throw_if_empty(details::consts::k_timer_empty_get_due_time_err_msg); |
nothing calls this directly
no outgoing calls
no test coverage detected