#include <debug.h>
Collaboration diagram for CVCL::DebugTimer:
Intended use is to store time intervals or accumulated time for multiple events (e.g. time spent to execute certain lines of code, or accumulated time spent in a particular function).
Definition at line 257 of file debug.h.
|
Constructor: takes the pointer to the actual time value. It is either stored in class Debug below (then the timer is "public"), or we own it, making the timer "private". Definition at line 265 of file debug.h. Referenced by operator+(), and operator-(). |
|
Copy constructor: copy the *pointer* from public timers, and *value* from private. The reason for different behavior for public and private time is the following. When you modify a public timer, you want the changes to show in the central database and everywhere else, whereas private timers are used as independent temporary variables holding intermediate time values. Definition at line 165 of file debug.cpp. References d_clean_time, and d_time. |
|
Destructor.
Definition at line 141 of file debug.cpp. References d_clean_time, and d_time. |
|
Assignment: same logistics as for the copy constructor.
Definition at line 178 of file debug.cpp. References d_clean_time, and d_time. |
|
Set time to zero.
Definition at line 200 of file debug.cpp. References d_time, and CVCL::DebugTime::reset(). |
|
Definition at line 204 of file debug.cpp. References d_time. |
|
Definition at line 209 of file debug.cpp. References d_time. |
|
Produces new "private" timer.
Definition at line 215 of file debug.cpp. References d_time, and DebugTimer(). |
|
Produces new "private" timer.
Definition at line 220 of file debug.cpp. References d_time, and DebugTimer(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Print the timer's value.
|
|
The time value.
Definition at line 259 of file debug.h. Referenced by DebugTimer(), CVCL::operator!=(), operator+(), operator+=(), operator-(), operator-=(), CVCL::operator<(), CVCL::operator<<(), CVCL::operator<=(), operator=(), CVCL::operator==(), CVCL::operator>(), CVCL::operator>=(), reset(), CVCL::Debug::setCurrentTime(), CVCL::Debug::setElapsed(), and ~DebugTimer(). |
|
Set if we own *d_time.
Definition at line 260 of file debug.h. Referenced by DebugTimer(), operator=(), and ~DebugTimer(). |