vdr  1.7.31
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
cTimeMs Class Reference

#include <tools.h>

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 315 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 604 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 612 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 317 of file include/vdr/tools.h.

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


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