Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

lib.sysdep.win.whrt
Class CounterTGT

boost::noncopyable
   |
   +--ICounter
         |
         +--CounterTGT

   in tgt.h
   in tgt.cpp

class CounterTGT
extends ICounter

========================================================================= File : tgt.h Project : 0 A.D. Description : Timer implementation using timeGetTime =========================================================================


Method Summary
 virtual LibError Activate()
          
 virtual u64 Counter() const
          
 virtual uint CounterBits() const
          WHRT uses this to ensure the counter (running at nominal frequency) doesn't overflow more than once during CALIBRATION_INTERVAL_MS.
 virtual bool IsSafe() const
          
 virtual const char* Name() const
          
 virtual double NominalFrequency() const
          initial measurement of the tick rate.
 virtual double Resolution() const
          actual resolution [s]
 virtual void Shutdown()
          
   
Methods inherited from class ICounter
Name, Activate, Shutdown, IsSafe, Counter, CounterBits, NominalFrequency, Resolution
 

Method Detail

Activate

public virtual LibError Activate();

Counter

public virtual u64 Counter() const;

CounterBits

public virtual uint CounterBits() const;
WHRT uses this to ensure the counter (running at nominal frequency) doesn't overflow more than once during CALIBRATION_INTERVAL_MS.

IsSafe

public virtual bool IsSafe() const;

Name

public virtual const char* Name() const;

NominalFrequency

public virtual double NominalFrequency() const;
initial measurement of the tick rate. not necessarily correct (e.g. when using TSC: wcpu_ClockFrequency isn't exact).

Resolution

public virtual double Resolution() const;
actual resolution [s]

Shutdown

public virtual void Shutdown();

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD