Loading...
Searching...
No Matches
UserTimer Class Reference
Inheritance diagram for UserTimer:
![]()
Detailed DescriptionDefinition at line 38 of file usertimer.h. Constructor & Destructor Documentation◆ UserTimer() [1/2]
◆ UserTimer() [2/2]◆ ~UserTimer()
Definition at line 98 of file usertimer.h. Member Function Documentation◆ lastTime()
◆ operator=()assignment operator Definition at line 89 of file usertimer.h. References UserTimer::lasttime, UserTimer::ticks_per_sec, UserTimer::uAccount, and UserTimer::uTicks. ◆ reset()
initialize timer, set timing accounts to zero. Implements Timer. Definition at line 106 of file usertimer.h. References UserTimer::lasttime, Timer::RESET, Timer::status, and UserTimer::uAccount. ◆ start()
start timer, resume accounting user, system and real time. Implements Timer. Definition at line 81 of file usertimer.cpp. References UserTimer::lasttime, Timer::RUNNING, Timer::status, UserTimer::uAccount, UserTimer::updateTicks(), and UserTimer::uTicks. ◆ stop()
stop timer, return accounted user time. Implements Timer. Definition at line 96 of file usertimer.cpp. References Timer::RUNNING, Timer::status, Timer::STOPPED, UserTimer::ticks2sec(), UserTimer::uAccount, UserTimer::updateTicks(), and UserTimer::uTicks. ◆ ticks2sec()
convert ticks to secounds. Definition at line 61 of file usertimer.h. References UserTimer::ticks_per_sec. Referenced by UserTimer::stop(), and UserTimer::time(). ◆ time()
Implements Timer. Definition at line 111 of file usertimer.cpp. References UserTimer::lasttime, Timer::RUNNING, Timer::status, UserTimer::ticks2sec(), UserTimer::uAccount, UserTimer::updateTicks(), and UserTimer::uTicks. ◆ type()
return type of timer Implements Timer. Definition at line 120 of file usertimer.h. References Timer::USER_TIME. ◆ updateTicks()
get actual user ticks from the system. Definition at line 61 of file usertimer.cpp. References UserTimer::uTicks. Referenced by UserTimer::start(), UserTimer::stop(), and UserTimer::time(). Member Data Documentation◆ lasttime
Definition at line 54 of file usertimer.h. Referenced by UserTimer::lastTime(), UserTimer::operator=(), UserTimer::reset(), UserTimer::start(), and UserTimer::time(). ◆ ticks_per_sec
ticks per secound, should be constant Definition at line 45 of file usertimer.h. Referenced by UserTimer::operator=(), UserTimer::ticks2sec(), UserTimer::UserTimer(), and UserTimer::UserTimer(). ◆ uAccount
user time Definition at line 51 of file usertimer.h. Referenced by UserTimer::operator=(), UserTimer::reset(), UserTimer::start(), UserTimer::stop(), and UserTimer::time(). ◆ uTicks
user ticks Definition at line 52 of file usertimer.h. Referenced by UserTimer::operator=(), UserTimer::start(), UserTimer::stop(), UserTimer::time(), and UserTimer::updateTicks().
|