Kohi Game Engine
clock Struct Reference

Represents a basic clock, which can be used to track time deltas in the system. More...

#include <clock.h>

Data Fields

f64 start_time
 The start time of the clock. If never started, this is 0. More...
 
f64 elapsed
 The amount of time in seconds that have elapsed since this clock was started. Only accurate after a call to clock_update. More...
 

Detailed Description

Represents a basic clock, which can be used to track time deltas in the system.

Field Documentation

◆ elapsed

f64 elapsed

The amount of time in seconds that have elapsed since this clock was started. Only accurate after a call to clock_update.

◆ start_time

f64 start_time

The start time of the clock. If never started, this is 0.


The documentation for this struct was generated from the following file: