vdr
2.7.6
|
#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 818 of file tools.c.
Referenced by cRcuRemote::Action(), cLircUsrRemote::Action(), cKbdRemote::Action(), cSectionHandler::Action(), cPositioner::CurrentLongitude(), cDisplayChannel::ProcessKey(), cThread::Start(), and WriteAllOrNothing().
|
static |
Definition at line 765 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 808 of file tools.c.
Referenced by cRcuRemote::Action(), cDvbTuner::Action(), cLircUsrRemote::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(), cDisplayVolume::ProcessKey(), cDisplayTracks::ProcessKey(), cDisplaySubtitleTracks::ProcessKey(), cDisplayChannel::ProcessKey(), cMenuEditStrItem::ProcessKey(), cPictureControl::ProcessKey(), cSVDRPClient::Send(), cCiTransportConnection::SendTPDU(), cSectionHandler::SetStatus(), cPatFilter::SetStatus(), cReplayControl::ShowProgress(), cPositioner::StartMovementTimer(), and cPatFilter::SwitchToNextPmtPid().
bool cTimeMs::TimedOut | ( | void | ) | const |
Definition at line 813 of file tools.c.
Referenced by cDvbTuner::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 |