![]() |
Raven Engine v0.1
|
A class representing a time step. More...
#include <Timestep.h>
Public Member Functions | |
| Timestep (float time=0.0f) | |
| Default constructor for Timestep. | |
| operator float () const | |
| Implicit conversion operator to float. | |
| float | GetSeconds () const |
| Returns the time step in seconds. | |
| float | GetMilliseconds () const |
| Returns the time step in milliseconds. | |
A class representing a time step.
This class is used to represent the time elapsed between frames in a game loop. It provides methods to convert the time step into seconds or milliseconds.
|
inline |
Default constructor for Timestep.
Initializes the time step to zero.
|
inline |
Returns the time step in milliseconds.
This method converts the time step from seconds to milliseconds.
|
inline |
Returns the time step in seconds.
This method returns the time step as a float.
|
inline |
Implicit conversion operator to float.
This allows the Timestep to be used as a float directly.