vdr 2.6.1
|
#include <tools.h>
Public Member Functions | |
cTimeMs (int Ms=0) | |
void | Set (int Ms=0) |
bool | TimedOut (void) const |
uint64_t | Elapsed (void) const |
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) |
static uint64_t | Now (void) |
Private Attributes | |
uint64_t | begin |
Definition at line 401 of file include/vdr/tools.h.
cTimeMs::cTimeMs | ( | int | Ms = 0 | ) |
cTimeMs::cTimeMs | ( | int | Ms = 0 | ) |
Creates a timer with ms resolution and an initial timeout of Ms.
If Ms is negative the timer is not initialized with the current time.
uint64_t cTimeMs::Elapsed | ( | void | ) | const |
Definition at line 802 of file tools.c.
Referenced by cLircRemote::Action(), cKbdRemote::Action(), cSectionHandler::Action(), cRcuRemote::Action(), cPositioner::CurrentLongitude(), cDisplayChannel::ProcessKey(), cThread::Start(), and WriteAllOrNothing().
uint64_t cTimeMs::Elapsed | ( | void | ) | const |
|
static |
Definition at line 749 of file tools.c.
References dsyslog, and esyslog.
Referenced by cTrueColorDemo::Action(), Elapsed(), Set(), and TimedOut().
|
static |
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(), cLircRemote::Action(), cRecorder::Action(), cKbdRemote::Action(), cRcuRemote::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().
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.
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().
bool cTimeMs::TimedOut | ( | void | ) | const |
|
private |
Definition at line 403 of file include/vdr/tools.h.
Referenced by cTimeMs(), Elapsed(), Set(), and TimedOut().