doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
idTimer Class Reference

#include <Timer.h>

Public Member Functions

 idTimer (void)
 
 idTimer (double clockTicks)
 
 ~idTimer (void)
 
idTimer operator+ (const idTimer &t) const
 
idTimer operator- (const idTimer &t) const
 
idTimeroperator+= (const idTimer &t)
 
idTimeroperator-= (const idTimer &t)
 
void Start (void)
 
void Stop (void)
 
void Clear (void)
 
double ClockTicks (void) const
 
double Milliseconds (void) const
 

Private Types

enum  { TS_STARTED, TS_STOPPED }
 

Private Member Functions

void InitBaseClockTicks (void) const
 

Private Attributes

enum idTimer:: { ... }  state
 
double start
 
double clockTicks
 

Static Private Attributes

static double base = -1.0
 

Detailed Description

Definition at line 40 of file Timer.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
TS_STARTED 
TS_STOPPED 

Definition at line 59 of file Timer.h.

Constructor & Destructor Documentation

ID_INLINE idTimer::idTimer ( void  )

Definition at line 74 of file Timer.h.

ID_INLINE idTimer::idTimer ( double  clockTicks)

Definition at line 84 of file Timer.h.

ID_INLINE idTimer::~idTimer ( void  )

Definition at line 94 of file Timer.h.

Member Function Documentation

ID_INLINE void idTimer::Clear ( void  )

Definition at line 172 of file Timer.h.

ID_INLINE double idTimer::ClockTicks ( void  ) const

Definition at line 181 of file Timer.h.

void idTimer::InitBaseClockTicks ( void  ) const
private

Definition at line 40 of file Timer.cpp.

ID_INLINE double idTimer::Milliseconds ( void  ) const

Definition at line 191 of file Timer.h.

ID_INLINE idTimer idTimer::operator+ ( const idTimer t) const

Definition at line 102 of file Timer.h.

ID_INLINE idTimer & idTimer::operator+= ( const idTimer t)

Definition at line 122 of file Timer.h.

ID_INLINE idTimer idTimer::operator- ( const idTimer t) const

Definition at line 112 of file Timer.h.

ID_INLINE idTimer & idTimer::operator-= ( const idTimer t)

Definition at line 133 of file Timer.h.

ID_INLINE void idTimer::Start ( void  )

Definition at line 144 of file Timer.h.

ID_INLINE void idTimer::Stop ( void  )

Definition at line 155 of file Timer.h.

Member Data Documentation

double idTimer::base = -1.0
staticprivate

Definition at line 58 of file Timer.h.

double idTimer::clockTicks
private

Definition at line 64 of file Timer.h.

double idTimer::start
private

Definition at line 63 of file Timer.h.

enum { ... } idTimer::state

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