All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UserTimer Class Reference
Inheritance diagram for UserTimer:
Detailed DescriptionDefinition at line 29 of file usertimer.h. Constructor & Destructor Documentation
Definition at line 89 of file usertimer.h. Member Function Documentation
assignment operator Definition at line 80 of file usertimer.h. References UserTimer::lasttime, UserTimer::ticks_per_sec, UserTimer::uAccount, and UserTimer::uTicks.
initialize timer, set timing accounts to zero. Implements Timer. Definition at line 97 of file usertimer.h. References UserTimer::lasttime, Timer::RESET, Timer::status, and UserTimer::uAccount.
start timer, resume accounting user, system and real time. Implements Timer. Definition at line 72 of file usertimer.cpp. References UserTimer::lasttime, Timer::RUNNING, Timer::status, UserTimer::uAccount, UserTimer::updateTicks(), and UserTimer::uTicks. Referenced by main().
stop timer, return accounted user time. Implements Timer. Definition at line 86 of file usertimer.cpp. References Timer::RUNNING, Timer::status, Timer::STOPPED, UserTimer::ticks2sec(), UserTimer::uAccount, UserTimer::updateTicks(), and UserTimer::uTicks. Referenced by main().
convert ticks to secounds. Definition at line 52 of file usertimer.h. References UserTimer::ticks_per_sec. Referenced by UserTimer::stop(), and UserTimer::time().
Implements Timer. Definition at line 100 of file usertimer.cpp. References UserTimer::lasttime, Timer::RUNNING, Timer::status, UserTimer::ticks2sec(), UserTimer::uAccount, UserTimer::updateTicks(), and UserTimer::uTicks. Referenced by main().
return type of timer Implements Timer. Definition at line 111 of file usertimer.h. References Timer::USER_TIME.
get actual user ticks from the system. Definition at line 52 of file usertimer.cpp. References UserTimer::uTicks. Referenced by UserTimer::start(), UserTimer::stop(), and UserTimer::time(). Member Data Documentation
Definition at line 45 of file usertimer.h. Referenced by UserTimer::lastTime(), UserTimer::operator=(), UserTimer::reset(), UserTimer::start(), and UserTimer::time().
ticks per secound, should be constant Definition at line 36 of file usertimer.h. Referenced by UserTimer::operator=(), UserTimer::ticks2sec(), and UserTimer::UserTimer().
user time Definition at line 42 of file usertimer.h. Referenced by UserTimer::operator=(), UserTimer::reset(), UserTimer::start(), UserTimer::stop(), and UserTimer::time().
user ticks Definition at line 43 of file usertimer.h. Referenced by UserTimer::operator=(), UserTimer::start(), UserTimer::stop(), UserTimer::time(), and UserTimer::updateTicks(). |