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 | clock |
Represents a basic clock, which can be used to track time deltas in the system. More... | |
Typedefs | |
typedef struct clock | clock |
Represents a basic clock, which can be used to track time deltas in the system. More... | |
Functions | |
KAPI void | clock_update (clock *clock) |
Updates the provided clock. Should be called just before checking elapsed time. Has no effect on non-started clocks. More... | |
KAPI void | clock_start (clock *clock) |
Starts the provided clock. Resets elapsed time. More... | |
KAPI void | clock_stop (clock *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. |