|
vdr 2.7.9
|
#include <tools.h>
Public Member Functions | |
| cTimeMs (int Ms=0) | |
| void | Set (int Ms=0) |
| bool | TimedOut (void) const |
| uint64_t | Elapsed (void) const |
| uint64_t | Remaining (void) const |
| void | Reset (void) |
Static Public Member Functions | |
| static uint64_t | Now (void) |
Private Attributes | |
| uint64_t | begin |
| uint64_t | end |
| cTimeMs::cTimeMs | ( | int | Ms = 0 | ) |
| uint64_t cTimeMs::Elapsed | ( | void | ) | const |
Returns the number of milliseconds that have elapsed since the last call to Set().
Definition at line 825 of file tools.c.
Referenced by cKbdRemote::Action(), cLircUsrRemote::Action(), cRcuRemote::Action(), cRecorder::Action(), cThread::Start(), and WriteAllOrNothing().
|
static |
Definition at line 769 of file tools.c.
References dsyslog, and esyslog.
Referenced by cTrueColorDemo::Action(), Elapsed(), Remaining(), Set(), and TimedOut().
| uint64_t cTimeMs::Remaining | ( | void | ) | const |
| void cTimeMs::Reset | ( | void | ) |
| void cTimeMs::Set | ( | int | Ms = 0 | ) |
Sets the timer.
Call Elapsed() to get the number of milliseconds since the timer has been set. If Ms is greater than 0, TimedOut() returns true as soon as Ms milliseconds have passed since calling Set(). If Ms is negative, results are undefined.
Definition at line 812 of file tools.c.
References begin, end, and Now().
Referenced by cDvbTuner::Action(), cKbdRemote::Action(), cLircUsrRemote::Action(), cRcuRemote::Action(), cTimeMs(), cSVDRPClient::Process(), and Reset().
| bool cTimeMs::TimedOut | ( | void | ) | const |
Returns true if the number of milliseconds given in the last call to Set() have passed.
Definition at line 820 of file tools.c.
Referenced by cDvbTuner::Action(), cRecorder::Action(), cThread::Cancel(), cCamSlot::CanDecrypt(), cSVDRPClient::Process(), and cSVDRPServerHandler::WaitUntilReady().
|
private |
|
private |
Definition at line 409 of file tools.h.
Referenced by cTimeMs(), Remaining(), Reset(), Set(), and TimedOut().