vdr  1.7.27
Public Member Functions | Static Public Member Functions | Private Attributes
cTimeMs Class Reference

#include <tools.h>

List of all members.

Public Member Functions

 cTimeMs (int Ms=0)
void Set (int Ms=0)
bool TimedOut (void)
uint64_t Elapsed (void)
 cTimeMs (int Ms=0)
void Set (int Ms=0)
bool TimedOut (void)
uint64_t Elapsed (void)

Static Public Member Functions

static uint64_t Now (void)
static uint64_t Now (void)

Private Attributes

uint64_t begin

Detailed Description

Definition at line 294 of file include/vdr/tools.h.


Constructor & Destructor Documentation

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.

Definition at line 576 of file tools.c.

References begin, and Set().

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.


Member Function Documentation

uint64_t cTimeMs::Elapsed ( void  )
uint64_t cTimeMs::Elapsed ( void  )
uint64_t cTimeMs::Now ( void  ) [static]

Definition at line 584 of file tools.c.

References dsyslog, and esyslog.

Referenced by cTrueColorDemo::Action(), Elapsed(), Set(), and TimedOut().

static uint64_t cTimeMs::Now ( void  ) [static]
void cTimeMs::Set ( int  Ms = 0)
void cTimeMs::Set ( int  Ms = 0)
bool cTimeMs::TimedOut ( void  )
bool cTimeMs::TimedOut ( void  )

Member Data Documentation

uint64_t cTimeMs::begin [private]

Definition at line 296 of file include/vdr/tools.h.

Referenced by cTimeMs(), Elapsed(), Set(), and TimedOut().


The documentation for this class was generated from the following files: