Clock

Utility class that measures the elapsed time.

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.

Constructors

this
this()

Default constructor.

this
this(sfClock* clock)
Undocumented in source.

Destructor

~this
~this()

Destructor

Members

Functions

getElapsedTime
Time getElapsedTime()

Get the elapsed time.

restart
Time restart()

Restart the clock.

Properties

dup
Clock dup [@property getter]

Create a copy of the clock.

Variables

sfPtr
sfClock* sfPtr;
Undocumented in source.

Meta