|
| Clock (const std::uint32_t entityId=0) |
| Construct a new Clock object.
|
|
| ~Clock () |
| Destroy the Clock object.
|
|
const std::int64_t | reset () |
| Resets the clock and returns the elapsed time since the last reset.
|
|
const std::int64_t | getElapsedTime () const |
| Gets the elapsed time since the clock was last reset.
|
|
void | stop () |
| Stops the clock.
|
|
void | start () |
| Starts the clock.
|
|
const bool | isRunning () const |
| Checks if the clock is currently running.
|
|
const std::string | getInfo (const unsigned int indent=0) const |
| This is a function meant for debugging purposes It will dump the current state of the variables upon call. It will dump them for itself and any of it's underlying classes.
|
|
| EntityNode (const size_t entityId=0) |
|
virtual | ~EntityNode ()=default |
|
virtual size_t | getEntityNodeId () const |
|
A class for managing time tracking within the ECS system.
This class extends EntityNode and provides functionality for managing time, including starting, stopping, resetting, and getting the elapsed time. It also supports debug information output through the getInfo
method.
Definition at line 36 of file Clock.hpp.