The Timer class provides timing code for performance evaluation. More...
#include <vul_timer.h>
Public Member Functions | |
vul_timer () | |
construct and reset counter to now. | |
~vul_timer () | |
void | mark () |
Reset the counted to now. | |
long | real () |
Real time (ms) since last mark. | |
long | user () |
User time (ms) since last mark. | |
long | system () |
System time (ms) since last mark. | |
long | all () |
User+system time (ms) since last mark. | |
void | print (vcl_ostream &s) |
Display user and real time since the last mark. | |
Private Member Functions | |
vul_timer (vul_timer const &) | |
vul_timer & | operator= (vul_timer const &) |
Private Attributes | |
vul_timer_data * | data |
struct containing timer data. |
The Timer class provides timing code for performance evaluation.
Definition at line 57 of file vul_timer.h.
vul_timer::vul_timer | ( | ) |
construct and reset counter to now.
Definition at line 73 of file vul_timer.cxx.
vul_timer::~vul_timer | ( | ) |
Definition at line 79 of file vul_timer.cxx.
vul_timer::vul_timer | ( | vul_timer const & | ) | [inline, private] |
Definition at line 81 of file vul_timer.h.
long vul_timer::all | ( | ) |
User+system time (ms) since last mark.
Definition at line 182 of file vul_timer.cxx.
void vul_timer::mark | ( | ) |
Reset the counted to now.
Sets the reference time to now.
Definition at line 87 of file vul_timer.cxx.
Definition at line 82 of file vul_timer.h.
void vul_timer::print | ( | vcl_ostream & | s | ) |
Display user and real time since the last mark.
Definition at line 196 of file vul_timer.cxx.
long vul_timer::real | ( | ) |
Real time (ms) since last mark.
Returns the number of milliseconds of wall clock time, since last mark().
Definition at line 114 of file vul_timer.cxx.
long vul_timer::system | ( | ) |
System time (ms) since last mark.
Returns the number of milliseconds spent in user-process or operating system respectively, since last mark().
Definition at line 168 of file vul_timer.cxx.
long vul_timer::user | ( | ) |
User time (ms) since last mark.
Definition at line 154 of file vul_timer.cxx.
vul_timer_data* vul_timer::data [private] |
struct containing timer data.
Definition at line 60 of file vul_timer.h.