WindowsFrameTimer Class Reference

#include <WindowsFrameTimer.h>

List of all members.

Public Member Functions

unsigned long getCurrentTime ()
double calculateFrameRate ()


Detailed Description

This is a MS Windows implemetation of the FrameTimer class. It uses the GetTickCount() function to obtain the number of clock ticks (actually, the number of milliseconds) passed since the system was booted (up to 49.7 days) and converts it to seconds using the CLOCKS_PER_SEC constant.

This implementation was based on the frame rate calculations used in the TabletopVis class of the original implementation of the UofC Tabletop Framework by A. Miede and T. Isenberg in the Interactions Lab at the University of Calgary, Canada.

Author:
Fabricio Anastacio - fabriciocfa@yahoo.com
Since:
July, 26, 2007


Member Function Documentation

unsigned long WindowsFrameTimer::getCurrentTime (  ) 

Returns the current system time. It is platform dependent and should be implement by a subclass.

Returns:
the current system time.

double WindowsFrameTimer::calculateFrameRate (  ) 

Calculates the frame per seconds value based on what unit is used to measure the system time in the used platform (e.g., msecs, clock ticks, etc.). It should use the value of the averageInterval attribute in its calculations.

Returns:
the fps value based on the current interval values.


The documentation for this class was generated from the following files:
Generated on Fri Dec 21 17:46:10 2007 for LargeDisplayFrameworkToolkit by  doxygen 1.5.2