a timer, copyright (C) 1994-1997 Givaro Team; License: LGPL
#include <timer.h>

Public Member Functions | |
| Timer () | |
| void | clear () |
| Clear timer : | |
| void | start () |
| Start timer. | |
| void | stop () |
| Stop timer. | |
| void | pauseTimer () |
| pause timer | |
| void | continueTimer () |
| continie timer // if timer is not running, not | |
| double | usertime () const |
| total amount of second spent in user mode | |
| double | systime () const |
| total amount of second spent in system mode | |
| double | realtime () const |
| real total amount of second spent. | |
Private Attributes | |
timer state | |
| bool | b_IsRunning |
| bool | b_Paused |
Friends | |
| class | MtcpCheckpointManager |
operators | |
|
| |
| size_t | _count |
| RealTimer | rt |
| UserTimer | ut |
| SysTimer | st |
| Timer & | operator= (const Timer &T) |
| Some arithmetic operator : | |
| const Timer | operator- (const Timer &T) const |
| Comput._tes and returns interval of time beteween *this and T. | |
| const Timer | operator- () |
| const Timer | operator+ (const Timer &T) const |
| Timer & | operator+= (const Timer &T) |
| Timer & | operator-= (const Timer &T) |
| std::ostream & | print (std::ostream &) const |
| size_t | count () const |
Definition at line 113 of file timer.h.
| Timer::Timer | ( | ) | [inline] |
| void Timer::clear | ( | ) |
Definition at line 162 of file timer.C.
References _count, b_IsRunning, b_Paused, BaseTimer::clear(), rt, st, and ut.
Referenced by nCenterFocus::centerfocus(), and Timer().

| void Timer::continueTimer | ( | ) |
Definition at line 175 of file timer.C.
References _count, b_IsRunning, b_Paused, rt, st, SysTimer::start(), UserTimer::start(), RealTimer::start(), and ut.
Referenced by MtcpCheckpointManager::connectTimer(), and MtcpCheckpointManager::disconnectTimer().

| size_t Timer::count | ( | ) | const [inline] |
| const Timer Timer::operator- | ( | ) |
| void Timer::pauseTimer | ( | ) |
Definition at line 205 of file timer.C.
References _count, b_IsRunning, b_Paused, rt, st, SysTimer::stop(), UserTimer::stop(), RealTimer::stop(), and ut.
Referenced by MtcpCheckpointManager::connectTimer(), and MtcpCheckpointManager::disconnectTimer().

| std::ostream & Timer::print | ( | std::ostream & | o | ) | const |
Definition at line 212 of file timer.C.
References realtime(), systime(), and usertime().

| double Timer::realtime | ( | ) | const [inline] |
Definition at line 143 of file timer.h.
References rt, and BaseTimer::time().
Referenced by operator<<(), and print().

| void Timer::start | ( | ) |
Definition at line 166 of file timer.C.
References _count, b_IsRunning, b_Paused, rt, st, SysTimer::start(), UserTimer::start(), RealTimer::start(), and ut.
Referenced by nCenterFocus::centerfocus().

| void Timer::stop | ( | ) |
Definition at line 191 of file timer.C.
References _count, b_IsRunning, b_Paused, rt, st, SysTimer::stop(), UserTimer::stop(), RealTimer::stop(), and ut.
Referenced by nCenterFocus::centerfocus().

| double Timer::systime | ( | ) | const [inline] |
Definition at line 140 of file timer.h.
References st, and BaseTimer::time().
Referenced by print().

| double Timer::usertime | ( | ) | const [inline] |
Definition at line 137 of file timer.h.
References BaseTimer::time(), and ut.
Referenced by operator<<(), outputTimerInfoEx(), and print().

friend class MtcpCheckpointManager [friend] |
size_t Timer::_count [private] |
Definition at line 163 of file timer.h.
Referenced by clear(), continueTimer(), count(), operator+(), operator-(), operator=(), pauseTimer(), start(), and stop().
bool Timer::b_IsRunning [private] |
Definition at line 171 of file timer.h.
Referenced by clear(), continueTimer(), pauseTimer(), start(), and stop().
bool Timer::b_Paused [private] |
Definition at line 172 of file timer.h.
Referenced by clear(), continueTimer(), pauseTimer(), start(), and stop().
Definition at line 165 of file timer.h.
Referenced by clear(), continueTimer(), operator+(), operator-(), operator=(), pauseTimer(), realtime(), start(), and stop().
Definition at line 167 of file timer.h.
Referenced by clear(), continueTimer(), operator+(), operator-(), operator=(), pauseTimer(), start(), stop(), and systime().
Definition at line 166 of file timer.h.
Referenced by clear(), continueTimer(), operator+(), operator-(), operator=(), pauseTimer(), start(), stop(), and usertime().
1.6.3