The simple-timers Module

Common Dylan provides a simple facility for timers to track intervals of time via the simple-timers module.

Timers offer microsecond resolution on all supported platforms. Timers attempt to be monotonic where that capability is supported by the operating system.

<profiling-timer> Class

The timer class.

Superclasses

<object>

Discussion

The timer class. Timers start out stopped and must be started with timer-start.

timer-start Generic function

Starts a timer.

Signature

timer-start timer => ()

Parameters
See also

timer-stop Generic function

Stops a timer and returns the elapsed time.

Signature

timer-stop timer => (seconds, microseconds)

Parameters
Values
See also

timer-accumulated-time Generic function

Returns the time since the timer was started.

Signature

timer-accumulated-time timer => (seconds, microseconds)

Parameters
Values
timer-running? Generic function

Returns true if the timer is running.

Signature

timer-running? timer => (running?)

Parameters
Values