1 //////////////////////////////////////////////////////////////////////////////////////////
3 // class to calculate frames per second
4 // Downloaded from: www.paulsprojects.net
5 // Created: 20th July 2002
7 // Copyright (c) 2006, Paul Baker
8 // Distributed under the New BSD Licence. (See accompanying file License.txt or copy at
9 // http://www.paulsprojects.net/NewBSDLicense.txt)
10 //////////////////////////////////////////////////////////////////////////////////////////
18 void Update(void); //updates counter - call once per frame
19 void Shutdown(void); //send max, min, average to log
20 float GetFps(void) { return fps
; }
22 FPS_COUNTER() : fps(0.0f
), lastTime(0.0f
), frames(0L), time(0.0f
)
34 #endif //FPS_COUNTER_H