#include <utility.h>
Public Member Functions | |
BenchTimer () | |
double | getElapsedTime () |
get elapsed time in milli-second More... | |
double | getElapsedTimeInMicroSec () |
get elapsed time in micro-second More... | |
double | getElapsedTimeInMilliSec () |
get elapsed time in milli-second More... | |
double | getElapsedTimeInSec () |
void | start () |
start timer More... | |
void | stop () |
stop the timer More... | |
~BenchTimer () | |
Private Attributes | |
timeval | endCount |
double | endTimeInMicroSec |
ending time in micro-second More... | |
timeval | startCount |
double | startTimeInMicroSec |
starting time in micro-second More... | |
int | stopped |
stop flag More... | |
coal::BenchTimer::BenchTimer | ( | ) |
Definition at line 19 of file utility.cpp.
coal::BenchTimer::~BenchTimer | ( | ) |
Definition at line 34 of file utility.cpp.
double coal::BenchTimer::getElapsedTime | ( | ) |
get elapsed time in milli-second
Definition at line 81 of file utility.cpp.
double coal::BenchTimer::getElapsedTimeInMicroSec | ( | ) |
get elapsed time in micro-second
Definition at line 55 of file utility.cpp.
double coal::BenchTimer::getElapsedTimeInMilliSec | ( | ) |
get elapsed time in milli-second
Definition at line 73 of file utility.cpp.
double coal::BenchTimer::getElapsedTimeInSec | ( | ) |
get elapsed time in second (same as getElapsedTime)
Definition at line 77 of file utility.cpp.
void coal::BenchTimer::start | ( | ) |
start timer
Definition at line 36 of file utility.cpp.
void coal::BenchTimer::stop | ( | ) |
stop the timer
Definition at line 45 of file utility.cpp.
|
private |
|
private |