[AE Engine logo] Public API Reference
Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

aeTimer Class Reference

This is a general virtual/system timer class. More...

#include <timer.h>

Inheritance diagram for aeTimer:

aeBase List of all members.

Public Member Functions

float getFPS () const
 Get the current FPS.

float getFrameInterval () const
 Get the interval between two frames.

void calculateFrameRate ()
 Calculate the current frame rate.


Private Attributes

float FPS
float FPScounter
float frameInterval
float frameTime
float lastFrameTime
float currentTime

Detailed Description

This is a general virtual/system timer class.

Definition at line 34 of file timer.h.


Member Function Documentation

void aeTimer::calculateFrameRate  
 

Calculate the current frame rate.

float aeTimer::getFPS   const [inline]
 

Get the current FPS.

Returns:
Current FPS.

Definition at line 55 of file timer.h.

float aeTimer::getFrameInterval   const [inline]
 

Get the interval between two frames.

This is used by aeCamera to create time based movement.

Returns:
The interval.

Definition at line 64 of file timer.h.


The documentation for this class was generated from the following file:
AE Engine Public API Reference
Generated on Wed Apr 9 09:43:41 2003 by Doxygen.