Class FrameTimer¶
Defined in File timer.h
Inheritance Relationships¶
Base Type¶
public LoggingScopeTimer
(Class LoggingScopeTimer)
Class Documentation¶
-
class
FrameTimer
: public LoggingScopeTimer¶ Timer that helps keep track of frame time.
Public Functions
-
FrameTimer
()¶
-
~FrameTimer
()¶
-
void
reset
()¶ Reset frame time to 0. Call at the beginning of the frame for accurate results.
-
void
showTime
()¶
-
void
showFPS
()¶
-
float
getFrameTime
() const¶ Call at the end of the frame for accurate results.
-
float
getLastFrameTime
() const¶
-
float
getLastFPS
() const¶
-