#include <Timer.h>
Public Member Functions | |
| timer () | |
| timer (const timer &) | |
| ~timer () | |
| timer & | operator= (const timer &) |
| timer & | operator+= (const timer &) |
| timer | operator+ (const timer &) const |
| void | clear () |
| void | start () |
| void | stop () |
| double | usecs () const |
| double | ssecs () const |
| double | wsecs () const |
| bool | is_running () const |
| double | CYCLES_PER_SEC () const |
| double | NANOSECS_PER_SEC () const |
| double | MICROSECS_PER_SEC () const |
Static Private Member Functions | |
| static void | get_current (double &, double &, double &) |
Private Attributes | |
| double | usecs_ |
| double | ssecs_ |
| double | wsecs_ |
| double | cu_ |
| double | cs_ |
| double | cw_ |
| unsigned | activation_count_ |
| const double | CYCLES_PER_SEC_ |
| const double | MICROSECS_PER_SEC_ |
| const double | NANOSECS_PER_SEC_ |
Definition at line 51 of file Timer.h.
| void timer::clear | ( | ) |
Definition at line 84 of file Timer.C.
References activation_count_, cs_, cu_, cw_, ssecs_, usecs_, and wsecs_.
Referenced by TimeStatistic::clear().
| double timer::CYCLES_PER_SEC | ( | ) | const [inline] |
Definition at line 71 of file Timer.h.
Referenced by get_current().
| void timer::get_current | ( | double & | u, | |
| double & | s, | |||
| double & | w | |||
| ) | [static, private] |
Definition at line 201 of file Timer.C.
References CYCLES_PER_SEC(), gettimeofday(), and MICROSECS_PER_SEC().
| bool timer::is_running | ( | ) | const |
Definition at line 128 of file Timer.C.
References activation_count_.
Referenced by TimeStatistic::is_running().
| double timer::MICROSECS_PER_SEC | ( | ) | const [inline] |
Definition at line 73 of file Timer.h.
Referenced by get_current().
| double timer::ssecs | ( | ) | const |
| void timer::start | ( | ) |
Definition at line 91 of file Timer.C.
References activation_count_, cs_, cu_, cw_, and get_current().
Referenced by TimeStatistic::start().
| void timer::stop | ( | ) |
Definition at line 98 of file Timer.C.
References activation_count_, cs_, cu_, cw_, get_current(), ssecs_, usecs_, and wsecs_.
Referenced by operator+=(), and TimeStatistic::stop().
| double timer::usecs | ( | ) | const |
| double timer::wsecs | ( | ) | const |
unsigned timer::activation_count_ [private] |
Definition at line 87 of file Timer.h.
Referenced by clear(), is_running(), operator=(), start(), and stop().
double timer::cs_ [private] |
double timer::cu_ [private] |
double timer::cw_ [private] |
const double timer::CYCLES_PER_SEC_ [private] |
const double timer::MICROSECS_PER_SEC_ [private] |
const double timer::NANOSECS_PER_SEC_ [private] |
double timer::ssecs_ [private] |
Definition at line 85 of file Timer.h.
Referenced by clear(), operator+=(), operator=(), ssecs(), and stop().
double timer::usecs_ [private] |
Definition at line 85 of file Timer.h.
Referenced by clear(), operator+=(), operator=(), stop(), and usecs().
double timer::wsecs_ [private] |
Definition at line 85 of file Timer.h.
Referenced by clear(), operator+=(), operator=(), stop(), and wsecs().
1.6.1