Public Member Functions | Private Attributes

Timer Class Reference

Convenience class to return high-resolution timer values. More...

#include <Common.h>

List of all members.

Public Member Functions

 Timer ()
Uint ms () const
Uint sec () const

Private Attributes

unsigned long int mTimerStarted

Detailed Description

Convenience class to return high-resolution timer values.

Provides functions to get system ticks in Miliseconds or in Seconds.

Todo:
Should we add in functions to calculate delta times for framerate independant animation or is that too specific for what this class should be used for?

Constructor & Destructor Documentation

Timer::Timer (  )  [inline]

Member Function Documentation

Uint Timer::ms (  )  const [inline]

Gets the current tick count in miliseconds.

Uint Timer::sec (  )  const [inline]

Gets the current tick count in seconds.


Member Data Documentation

unsigned long int Timer::mTimerStarted [private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines