nudsfml.system.clock

Clock is a lightweight class for measuring time.

Its provides the most precise time that the underlying OS can achieve (generally microseconds or nanoseconds). It also ensures monotonicity, which means that the returned time can never go backward, even if the system time is changed.

Public Imports

nudsfml.system.time
public import nudsfml.system.time;
Undocumented in source.

Members

Classes

Clock
class Clock

Utility class that measures the elapsed time.

Examples

auto clock = Clock();
...
Time duration1 = clock.getElapsedTime();
...
Time duration2 = clock.restart();

$(PARA The Time value returned by the clock can then be converted to a number of seconds, milliseconds or even microseconds.)

See Also

$(TIME_LINK)

Meta