glib.timer
Module for [Timer] class
class Timer
Types 1
classTimer
glib.timer.Timer records a start time, and counts microseconds elapsed since that time.
This is done somewhat differently on different platforms, and can be tricky to get exactly right, so glib.timer.Timer provides a portable/convenient interface.
Methods
void * _cPtr() nothrowdouble elapsed() nothrowIf timer has been started but not stopped, obtains the time since the timer was started. If timer has been stopped, obtains the elapsed time between the time it was started and the time it was stop...void continue_() nothrowResumes a timer that has previously been stopped with [glib.timer.Timer.stop]. [glib.timer.Timer.stop] must be called before using this function.double elapsed(out gulong microseconds) nothrowIf timer has been started but not stopped, obtains the time since the timer was started. If timer has been stopped, obtains the elapsed time between the time it was started and the time it was stop...bool isActive() nothrowExposes whether the timer is currently active. Returns: true if the timer is running, false otherwisevoid reset() nothrowThis function is useless; it's fine to call [glib.timer.Timer.start] on an already-started timer to reset the start time, so [glib.timer.Timer.reset] serves no purpose.void start() nothrowMarks a start time, so that future calls to [glib.timer.Timer.elapsed] will report the time since [glib.timer.Timer.start] was called. [glib.timer.Timer.new_] automatically marks the start time, so...void stop() nothrowMarks an end time, so calls to [glib.timer.Timer.elapsed] will return the difference between this end time and the start time.