pixelperfectengine.system.timer

Undocumented in source.

Public Imports

core.time
public import core.time;
Undocumented in source.

Members

Classes

CoarseTimer
class CoarseTimer

Implements a coarse timer, that checks the time periodically (e.g. on VSYNC), then calls the delegate if the time assigned to it has been lapsed. Is fast and can effectively test for multiple elements, but is inaccurate which can even fluctuate if tests are done on VSYNC intervals. This will make the duration longer in every case (up to 16.7ms on 60Hz displays), but this still should be accurate enough for many cases. Delegates must take no arguments and nothrow to avoid issues from that.

Static variables

timer
CoarseTimer timer;
Undocumented in source.

Meta