vdr 2.7.3
|
#include <tools.h>
Public Member Functions | |
cTimeMs (int Ms=0) | |
void | Set (int Ms=0) |
bool | TimedOut (void) const |
uint64_t | Elapsed (void) const |
Static Public Member Functions | |
static uint64_t | Now (void) |
Private Attributes | |
uint64_t | begin |
cTimeMs::cTimeMs | ( | int | Ms = 0 | ) |
uint64_t cTimeMs::Elapsed | ( | void | ) | const |
Definition at line 815 of file tools.c.
Referenced by cKbdRemote::Action(), cLircUsrRemote::Action(), cRcuRemote::Action(), cThread::Start(), and WriteAllOrNothing().
|
static |
Definition at line 762 of file tools.c.
References dsyslog, and esyslog.
Referenced by cTrueColorDemo::Action(), Elapsed(), Set(), and TimedOut().
void cTimeMs::Set | ( | int | Ms = 0 | ) |
Sets the timer.
If Ms is 0, 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. Depending on the value of Ms, an object of cTimeMs can handle either timeouts or elapsed times, not both at the same time.
Definition at line 805 of file tools.c.
Referenced by cDvbSubtitleConverter::Action(), cDvbTuner::Action(), cKbdRemote::Action(), cLircUsrRemote::Action(), cRcuRemote::Action(), cRecorder::Action(), cTimeMs(), and cSVDRPClient::Process().
bool cTimeMs::TimedOut | ( | void | ) | const |
Definition at line 810 of file tools.c.
Referenced by cDvbSubtitleConverter::Action(), cDvbTuner::Action(), cRecorder::Action(), cCamSlot::CanDecrypt(), cSVDRPClient::Process(), and cSVDRPServerHandler::WaitUntilReady().
|
private |