zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Zeni::Time_HQ Class Reference

A Snapshot of the Timer_HQ. More...

#include <Timer_HQ.h>

Public Types

typedef long double Second_Type
 
typedef HQ_Tick_Type Tick_Type
 

Public Member Functions

 Time_HQ ()
 Initialize to the current time. More...
 
 Time_HQ (const HQ_Tick_Type &ticks)
 
 Time_HQ (const HQ_Tick_Type &ticks, const HQ_Tick_Type &ticks_per_second)
 
long double get_seconds_passed () const
 Get the number of seconds passed since this Time. More...
 
long double get_seconds_since (const Time_HQ &time) const
 Get the number of seconds passed between 'time' and this Time. More...
 
HQ_Tick_Type get_ticks_passed () const
 Get the number of clock ticks passed since this Time. More...
 
HQ_Tick_Type get_ticks_since (const Time_HQ &time) const
 Get the number of clock ticks passed between 'time' and this Time. More...
 
bool operator< (const Time_HQ &rhs) const
 
Time_HQoperator= (const HQ_Tick_Type &ticks)
 
void update ()
 Update to current Time. More...
 

Detailed Description

A Snapshot of the Timer_HQ.

Note
Guaranteed sub-millisecond precision (approximately microsecond)
Author
bazald

Contact: bazal.nosp@m.d@ze.nosp@m.nipex.nosp@m..com

Definition at line 79 of file Timer_HQ.h.

Member Typedef Documentation

typedef long double Zeni::Time_HQ::Second_Type

Definition at line 82 of file Timer_HQ.h.

Definition at line 81 of file Timer_HQ.h.

Constructor & Destructor Documentation

Zeni::Time_HQ::Time_HQ ( )

Initialize to the current time.

Definition at line 96 of file Timer_HQ.cpp.

Zeni::Time_HQ::Time_HQ ( const HQ_Tick_Type ticks)

Definition at line 84 of file Timer_HQ.cpp.

Zeni::Time_HQ::Time_HQ ( const HQ_Tick_Type ticks,
const HQ_Tick_Type ticks_per_second 
)

Definition at line 90 of file Timer_HQ.cpp.

Member Function Documentation

long double Zeni::Time_HQ::get_seconds_passed ( ) const
inline

Get the number of seconds passed since this Time.

Definition at line 35 of file Timer_HQ.hxx.

References get_ticks_passed().

long double Zeni::Time_HQ::get_seconds_since ( const Time_HQ time) const
inline

Get the number of seconds passed between 'time' and this Time.

Definition at line 43 of file Timer_HQ.hxx.

References get_ticks_since().

Referenced by Zeni::Sound_Source::get_time().

HQ_Tick_Type Zeni::Time_HQ::get_ticks_passed ( ) const
inline

Get the number of clock ticks passed since this Time.

Definition at line 31 of file Timer_HQ.hxx.

References Zeni::Timer_HQ::get_ticks(), and Zeni::get_Timer_HQ().

Referenced by get_seconds_passed().

HQ_Tick_Type Zeni::Time_HQ::get_ticks_since ( const Time_HQ time) const
inline

Get the number of clock ticks passed between 'time' and this Time.

Definition at line 39 of file Timer_HQ.hxx.

Referenced by get_seconds_since().

bool Zeni::Time_HQ::operator< ( const Time_HQ rhs) const
inline

Definition at line 90 of file Timer_HQ.hxx.

Time_HQ & Zeni::Time_HQ::operator= ( const HQ_Tick_Type ticks)
inline

Definition at line 25 of file Timer_HQ.hxx.

References Zeni::Timer_HQ::get_ticks_per_second(), and Zeni::get_Timer_HQ().

void Zeni::Time_HQ::update ( )
inline

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