this->start_time_.sys = 0;
}
-// Start couting the time.
+// Start counting the time.
void
-Timer::start ()
+Timer::start()
{
this->get_time(&this->start_time_);
}
# endif
#endif
-// times returns statistics in clock_t units. This variable will hold the
-// conversion factor to seconds. We use a variable that is initialize once
+// times returns statistics in clock_t units. This variable will hold the
+// conversion factor to seconds. We use a variable that is initialized once
// because sysconf can be slow.
static long ticks_per_sec;
class Timer_init
};
Timer_init timer_init;
-// Write the current time infortamion.
+// Write the current time information.
void
-Timer::get_time (TimeStats *now)
+Timer::get_time(TimeStats *now)
{
#ifdef HAVE_TIMES
tms t;
// Return the stats since start was called.
Timer::TimeStats
-Timer::get_elapsed_time ()
+Timer::get_elapsed_time()
{
TimeStats now;
this->get_time(&now);