30inline static double seconds(
void)
32 const double secs_per_tick = 1.0 / CLOCKS_PER_SEC;
33 return ( (
double) clock() ) * secs_per_tick;
53inline Stopwatch::Stopwatch() : running_(0), start_time_(0.0), total_(0.0) {}
55void Stopwatch::start()
59 start_time_ = seconds();
62double Stopwatch::stop()
66 total_ += (seconds() - start_time_);
72inline void Stopwatch::resume()
76 start_time_ = seconds();
82inline double Stopwatch::read()
Definition tnt_stopwatch.h:38
Definition tnt_array1d.h:36