#include <Timer.h>
Public Member Functions | |
void | init () |
void | update () |
float | getFrameTime () |
int | getFPS () |
double | getTime () |
double | getFrequency () |
Protected Attributes | |
double | frequency |
__int64 | startClock |
float | frameTime |
float | frameStart |
float | frameEnd |
float | fpsLimiter |
int | fps |
int | frameCount |
Author: Petter Alstermark, petter@alstermark.com
Definition at line 14 of file Timer.h.
|
Definition at line 66 of file Timer.cpp. References fps. Referenced by WinMain(). |
|
Definition at line 62 of file Timer.cpp. References frameTime. Referenced by WinMain(). |
|
Definition at line 70 of file Timer.cpp. References frequency. |
|
Definition at line 56 of file Timer.cpp. References frequency, and startClock. |
|
Author: Petter Alstermark, petter@alstermark.com Definition at line 9 of file Timer.cpp. References fps, fpsLimiter, frameCount, frameEnd, frameStart, frameTime, frequency, getTime(), and startClock. Referenced by WinMain(). Here is the call graph for this function: |
|
do { frameEnd = (float)getTime(); frameTime = frameEnd - frameStart; } while (frameEnd == frameStart || frameTime <= 0.02f); frameStart = frameEnd; Definition at line 26 of file Timer.cpp. References fps, fpsLimiter, frameCount, frameEnd, frameStart, frameTime, and getTime(). Referenced by WinMain(). Here is the call graph for this function: |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 26 of file Timer.h. Referenced by getFrameTime(), init(), and update(). |
|
Definition at line 24 of file Timer.h. Referenced by getFrequency(), getTime(), and init(). |
|
|