gedi::Timer Class Reference

#include <Timer.h>

List of all members.

Public Member Functions

 Timer (void)
 ~Timer (void)
void Update (void)
gedi::Real32 GetDelta (void)
gedi::UInt32 GetSeconds (void)
gedi::UInt32 GetMinutes (void)
gedi::UInt32 GetHours (void)
gedi::UInt32 GetDay (void)

Static Public Member Functions

static void Wait (gedi::UInt32 ms)

Protected Attributes

LARGE_INTEGER m_iFrequency
LARGE_INTEGER m_iLastQuery
LARGE_INTEGER m_iDelta
tm * m_pkTime


Detailed Description

Gedi timer class


Constructor & Destructor Documentation

gedi::Timer::Timer ( void   ) 

Constructor

gedi::Timer::~Timer ( void   ) 

Destructor


Member Function Documentation

void gedi::Timer::Update ( void   ) 

Update the time variables

gedi::Real32 gedi::Timer::GetDelta ( void   ) 

Get delta time from last update.

gedi::UInt32 gedi::Timer::GetSeconds ( void   ) 

Get system seconds.

gedi::UInt32 gedi::Timer::GetMinutes ( void   ) 

Get system minutes.

gedi::UInt32 gedi::Timer::GetHours ( void   ) 

Get system hours.

gedi::UInt32 gedi::Timer::GetDay ( void   ) 

Get system day

void gedi::Timer::Wait ( gedi::UInt32  ms  )  [static]

Wait a time.

Parameters:
ms Milliseconds to sleep


Member Data Documentation

LARGE_INTEGER gedi::Timer::m_iFrequency [protected]

Hardware timer variable: frequency

LARGE_INTEGER gedi::Timer::m_iLastQuery [protected]

Hardware timer variable: last query

LARGE_INTEGER gedi::Timer::m_iDelta [protected]

Hardware timer variable: delta

tm* gedi::Timer::m_pkTime [protected]

Time and date variables


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