Exemple #1
0
 boost::int64_t elapsed_microseconds() const
 {
     return boost::int64_t((take_time_stamp() - start_time_) * 1e-3);
 }
Exemple #2
0
 boost::int64_t elapsed_nanoseconds() const
 {
     return boost::int64_t(take_time_stamp() - start_time_);
 }
Exemple #3
0
 double elapsed() const                  // return elapsed time in seconds
 {
     return double(take_time_stamp() - start_time_) * 1e-9;
 }
Exemple #4
0
 void restart()
 {
     start_time_ = take_time_stamp();
 }
Exemple #5
0
 static double now()
 {
     return take_time_stamp() * 1e-9;
 }
Exemple #6
0
 high_resolution_timer()
   : start_time_(take_time_stamp())
 {
 }
Exemple #7
0
 thread_aware_timer()
   : start_time_(take_time_stamp())
 {
 }