vdr 2.6.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 802 of file tools.c.
Referenced by cLircUsrRemote::Action(), cRcuRemote::Action(), cKbdRemote::Action(), cSectionHandler::Action(), cPositioner::CurrentLongitude(), cDisplayChannel::ProcessKey(), cThread::Start(), and WriteAllOrNothing().
|
static |
Definition at line 749 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 792 of file tools.c.
Referenced by cDvbTuner::Action(), cDvbSubtitleConverter::Action(), cLircUsrRemote::Action(), cRcuRemote::Action(), cRecorder::Action(), cKbdRemote::Action(), cCiTransportConnection::cCiTransportConnection(), cDisplayChannel::cDisplayChannel(), cDisplaySubtitleTracks::cDisplaySubtitleTracks(), cDisplayTracks::cDisplayTracks(), cDisplayVolume::cDisplayVolume(), cPictureControl::cPictureControl(), cSVDRPClient::cSVDRPClient(), cTimeMs(), cDisplayChannel::DisplayChannel(), cDisplayChannel::DisplayInfo(), cRemote::Get(), cAdaptiveSkipper::GetValue(), cMenuChannels::Number(), cSVDRPClient::Process(), cCiTransportConnection::Process(), cCamSlot::Process(), cCiConditionalAccessSupport::Process(), cPatFilter::Process(), cDisplayChannel::ProcessKey(), cDisplayVolume::ProcessKey(), cDisplayTracks::ProcessKey(), cDisplaySubtitleTracks::ProcessKey(), cMenuEditStrItem::ProcessKey(), cPictureControl::ProcessKey(), cSVDRPClient::Send(), cCiTransportConnection::SendTPDU(), cPatFilter::SetStatus(), cSectionHandler::SetStatus(), cReplayControl::ShowProgress(), cPositioner::StartMovementTimer(), and cPatFilter::SwitchToNextPmtPid().
bool cTimeMs::TimedOut | ( | void | ) | const |
Definition at line 797 of file tools.c.
Referenced by cDvbTuner::Action(), cDvbSubtitleConverter::Action(), cRecorder::Action(), cCamSlot::CanDecrypt(), cRemote::Get(), cAdaptiveSkipper::GetValue(), cMenuChannels::Number(), cSVDRPClient::Process(), cCiTransportConnection::Process(), cCamSlot::Process(), cCiConditionalAccessSupport::Process(), cPatFilter::Process(), cDisplayVolume::ProcessKey(), cDisplayTracks::ProcessKey(), cDisplaySubtitleTracks::ProcessKey(), cMenuEditStrItem::ProcessKey(), cPictureControl::ProcessKey(), cReplayControl::ShowProgress(), and cSVDRPServerHandler::WaitUntilReady().
|
private |