|
Kohi Game Engine
|
This file contains structures and functions for the engine's clock. More...
#include "defines.h"Go to the source code of this file.
Data Structures | |
| struct | kclock |
| Represents a basic clock, which can be used to track time deltas in the system. More... | |
Typedefs | |
| typedef struct kclock | kclock |
| Represents a basic clock, which can be used to track time deltas in the system. More... | |
Functions | |
| KAPI void | kclock_update (kclock *clock) |
| Updates the provided clock. Should be called just before checking elapsed time. Has no effect on non-started clocks. More... | |
| KAPI void | kclock_start (kclock *clock) |
| Starts the provided clock. Resets elapsed time. More... | |
| KAPI void | kclock_stop (kclock *clock) |
| Stops the provided clock. Does not reset elapsed time. More... | |
This file contains structures and functions for the engine's clock.
Represents a basic clock, which can be used to track time deltas in the system.
Starts the provided clock. Resets elapsed time.
| clocl | A pointer to the clock to be started. |
Stops the provided clock. Does not reset elapsed time.
| clock | A pointer to the clock to be stopped. |