int32_t restart(void) { auto current_time = std::chrono::steady_clock::now(); int32_t return_value = time_difference_ms(current_time, m_start_time); m_start_time = current_time; return return_value; }
int32_t elapsed(void) { struct timeval current_time; gettimeofday(¤t_time, NULL); return time_difference_ms(current_time, m_start_time); }
int32_t restart(void) { int32_t return_value; struct timeval current_time; gettimeofday(¤t_time, NULL); return_value = time_difference_ms(current_time, m_start_time); m_start_time = current_time; return return_value; }
int32_t elapsed(void) const { return time_difference_ms(std::chrono::steady_clock::now(), m_start_time); }