Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
  int32_t
  elapsed(void)
  {
    struct timeval current_time;

    gettimeofday(&current_time, NULL);
    return time_difference_ms(current_time, m_start_time);
  }
Exemplo n.º 3
0
  int32_t
  restart(void)
  {
    int32_t return_value;
    struct timeval current_time;

    gettimeofday(&current_time, NULL);
    return_value = time_difference_ms(current_time, m_start_time);
    m_start_time = current_time;

    return return_value;
  }
Exemplo n.º 4
0
 int32_t
 elapsed(void) const
 {
   return time_difference_ms(std::chrono::steady_clock::now(), m_start_time);
 }