Use clock_gettime() to time steps
Simplest possible version. Still reports tick value for comparison.
-
mentioned in issue #110 (closed)
-
Owner
Should we have the 'time_diff()' function in timers.[hc] ? I feel like that engine.c is pretty cramped and sort of a big untidy mix of stuff.
-
Author Owner
Yes, I've already started a
clocks.h
to encapsulate this and handle the various possibilities. See the time-in-seconds branch. Early days so nothing to test just yet.
Please register or sign in to comment