CGPdocs

Time

Clock shared by all the timers.

Compute 1

double timer_current_time()

Current time in seconds from the time source shared by all timers (a steady monotonic clock by default).

Other 1

void timer_set_time_source(double(*)() source)

Replace the time source shared by all timers, e.g. for deterministic tests; nullptr restores the default steady clock.

CGP - Computer Graphics Programming.