NLMISC::CSimpleClock Class Reference

A simple clock to measure ticks. More...

#include <hierarchical_timer.h>

List of all members.

Public Member Functions

 CSimpleClock ()
void start ()
void stop ()
uint64 getNumTicks () const

Static Public Member Functions

static void init ()
static uint64 getStartStopNumTicks ()
 Get the number of ticks needed to perform start().

Private Attributes

uint64 _StartTick
uint64 _NumTicks

Static Private Attributes

static bool _InitDone = false
static uint64 _StartStopNumTicks = 0

Detailed Description

A simple clock to measure ticks.

Warning:
On Intel platform, processor cycles are counted, on other platforms, CTime::getPerformanceTime is used instead.
See also:
CStopWatch
Author:
Nicolas Vizerie
Nevrax France
Date:
2002

Definition at line 98 of file hierarchical_timer.h.


Constructor & Destructor Documentation

NLMISC::CSimpleClock::CSimpleClock (  )  [inline]

Definition at line 101 of file hierarchical_timer.h.


Member Function Documentation

uint64 NLMISC::CSimpleClock::getNumTicks (  )  const [inline]
static uint64 NLMISC::CSimpleClock::getStartStopNumTicks (  )  [inline, static]

Get the number of ticks needed to perform start().

Should have called init() before calling this.

Definition at line 147 of file hierarchical_timer.h.

References _StartStopNumTicks.

Referenced by NLMISC::CHTimer::doAfter().

void NLMISC::CSimpleClock::init ( void   )  [static]
void NLMISC::CSimpleClock::start (  )  [inline]
void NLMISC::CSimpleClock::stop ( void   )  [inline]

Member Data Documentation

bool NLMISC::CSimpleClock::_InitDone = false [static, private]

Definition at line 157 of file hierarchical_timer.h.

Referenced by init().

Definition at line 153 of file hierarchical_timer.h.

Referenced by getNumTicks(), and stop().

Definition at line 158 of file hierarchical_timer.h.

Referenced by getStartStopNumTicks(), and init().

Definition at line 152 of file hierarchical_timer.h.

Referenced by start(), and stop().


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

Generated on Thu Jan 7 08:30:18 2010 for NeL by  doxygen 1.6.1