This file contains global type definitions which are used throughout the entire engine and applicatio...
#define KAPI
Import/export qualifier.
Definition: defines.h:205
double f64
64-bit floating point number
Definition: defines.h:50
KAPI void kclock_stop(kclock *clock)
Stops the provided clock. Does not reset elapsed time.
struct kclock kclock
Represents a basic clock, which can be used to track time deltas in the system.
KAPI void kclock_update(kclock *clock)
Updates the provided clock. Should be called just before checking elapsed time. Has no effect on non-...
KAPI void kclock_start(kclock *clock)
Starts the provided clock. Resets elapsed time.
Represents a basic clock, which can be used to track time deltas in the system.
Definition: kclock.h:20
f64 start_time
The start time of the clock. If never started, this is 0.
Definition: kclock.h:22
f64 elapsed
The amount of time in seconds that have elapsed since this clock was started. Only accurate after a c...
Definition: kclock.h:26