UserTimer Class Reference
Inheritance diagram for UserTimer:
![]()
Detailed DescriptionDefinition at line 29 of file usertimer.h. Constructor & Destructor Documentation
default constructor Definition at line 68 of file usertimer.h. copy constructor Definition at line 74 of file usertimer.h.
Definition at line 89 of file usertimer.h. Member Function Documentation
Implements Timer. Definition at line 114 of file usertimer.cpp. References UserTimer::lasttime. Referenced by UserTimer::type(). assignment operator Definition at line 80 of file usertimer.h. References UserTimer::lasttime, UserTimer::uAccount, and UserTimer::uTicks.
initialize timer, set timing accounts to zero. Implements Timer. Definition at line 97 of file usertimer.h. References Timer::RESET, UserTimer::start(), Timer::status, and UserTimer::stop().
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(), and UserTimer::reset().
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(), and UserTimer::reset().
convert ticks to secounds. Definition at line 52 of file usertimer.h. References UserTimer::updateTicks(). 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(), and UserTimer::type().
return type of timer Implements Timer. Definition at line 111 of file usertimer.h. References UserTimer::lastTime(), UserTimer::time(), and 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(), UserTimer::ticks2sec(), and UserTimer::time(). Member Data Documentation
Definition at line 45 of file usertimer.h. Referenced by UserTimer::lastTime(), UserTimer::operator=(), UserTimer::start(), and UserTimer::time().
ticks per secound, should be constant Definition at line 36 of file usertimer.h.
user time Definition at line 42 of file usertimer.h. Referenced by UserTimer::operator=(), 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(). |