#include <timer.h>
Public Member Functions | |
timer () | |
void | start (const char *msg=0) |
void | restart (const char *msg=0) |
void | stop (const char *msg=0) |
void | check (const char *msg=0) |
double | elapsed_time () |
Private Attributes | |
bool | running |
clock_t | start_clock |
time_t | start_time |
double | acc_time |
Friends | |
std::ostream & | operator<< (std::ostream &os, timer &t) |
timer::timer | ( | ) | [inline] |
void timer::start | ( | const char * | msg = 0 |
) | [inline] |
void timer::restart | ( | const char * | msg = 0 |
) | [inline] |
void timer::stop | ( | const char * | msg = 0 |
) | [inline] |
void timer::check | ( | const char * | msg = 0 |
) | [inline] |
double timer::elapsed_time | ( | ) | [inline] |
std::ostream& operator<< | ( | std::ostream & | os, | |
timer & | t | |||
) | [friend] |
bool timer::running [private] |
clock_t timer::start_clock [private] |
time_t timer::start_time [private] |
double timer::acc_time [private] |