vdr  2.0.7
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)
 

Static Public Member Functions

static uint64_t Now (void)
 

Private Attributes

uint64_t begin
 

Detailed Description

Definition at line 323 of file 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 638 of file tools.c.

References begin, and Set().

Member Function Documentation

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

Definition at line 646 of file tools.c.

References dsyslog, and esyslog.

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

void cTimeMs::Set ( int  Ms = 0)
bool cTimeMs::TimedOut ( void  )

Member Data Documentation

uint64_t cTimeMs::begin
private

Definition at line 325 of file tools.h.

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


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