Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TrueClock Class Reference

An interface to whatever real-time clock we might have available in the current environment. More...

#include <trueClock.h>

List of all members.

Public Member Functions

double get_long_time () const
double get_short_time () const

Static Public Member Functions

TrueClock * get_ptr ()
 Returns a pointer to the one TrueClock object in the world.


Protected Member Functions

 TrueClock ()
 ~TrueClock ()
 A protected destructor because no one should try to delete the global TrueClock.


Static Protected Attributes

TrueClock * _global_ptr = NULL


Detailed Description

An interface to whatever real-time clock we might have available in the current environment.

There is only one TrueClock in existence, and it constructs itself.

The TrueClock returns elapsed real time in seconds since some undefined epoch. Since it is not defined at what time precisely the clock indicates zero, this value can only be meaningfully used to measure elapsed time, by sampling it at two different times and subtracting.

Definition at line 55 of file trueClock.h.


Constructor & Destructor Documentation

TrueClock::TrueClock  )  [protected]
 

Definition at line 295 of file trueClock.cxx.

References _init_sec.

TrueClock::~TrueClock  )  [inline, protected]
 

A protected destructor because no one should try to delete the global TrueClock.

Definition at line 51 of file trueClock.I.


Member Function Documentation

double TrueClock::get_long_time  )  const
 

Definition at line 247 of file trueClock.cxx.

Referenced by ClockObject::get_frame_time().

TrueClock * TrueClock::get_ptr  )  [inline, static]
 

Returns a pointer to the one TrueClock object in the world.

Definition at line 33 of file trueClock.I.

References INLINE.

Referenced by ProfileTimer::on().

double TrueClock::get_short_time  )  const
 

Definition at line 271 of file trueClock.cxx.

Referenced by ProfileTimer::on().


Member Data Documentation

TrueClock * TrueClock::_global_ptr = NULL [static, protected]
 

Definition at line 29 of file trueClock.cxx.


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:55:49 2003 for Panda by doxygen1.3