BRE12
|
Timer class used mainly to get frame time. More...
#include <Timer.h>
Public Member Functions | |
Timer (const Timer &)=delete | |
const Timer & | operator= (const Timer &)=delete |
Timer (Timer &&)=delete | |
Timer & | operator= (Timer &&)=delete |
__forceinline float | GetDeltaTimeInSeconds () const noexcept |
Get delta time in seconds. More... | |
void | Reset () noexcept |
Reset timer. More... | |
void | Tick () noexcept |
Ticks the timer. More... | |
Timer class used mainly to get frame time.
|
inlinenoexcept |
Get delta time in seconds.
Get delta time in seconds between 2 ticks, used to know the elapsed time between frames.
|
noexcept |
Reset timer.
Reset timer. This should be called exactly before the game loop.
|
noexcept |
Ticks the timer.
Ticks the timer. This will cause that delta time in seconds is updated. You should call it every frame.