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