#include <WindowsFrameTimer.h>
Public Member Functions | |
unsigned long | getCurrentTime () |
double | calculateFrameRate () |
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.
unsigned long WindowsFrameTimer::getCurrentTime | ( | ) |
Returns the current system time. It is platform dependent and should be implement by a subclass.
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.