GLib.Timer – glib-2.0 Reference Manual
Packages
glib-2.0
GLib
Timer
Timer
@continue
elapsed
reset
start
stop
Timer
Object Hierarchy:
Description:
[
Compact
]
public
class
Timer
Opaque datatype that records a start time.
Namespace:
GLib
Package:
glib-2.0
Content:
Creation methods:
public
Timer
()
Methods:
public
void
start
()
Marks a start time, so that future calls to
elapsed
will report the time since
start
was called.
public
void
stop
()
Marks an end time, so calls to
elapsed
will return the difference between this end time and the start time.
public
void
@continue
()
Resumes a timer that has previously been stopped with
stop
.
public
double
elapsed
(
out
ulong
microseconds =
null
)
If
this
has been started but not stopped, obtains the time since the timer was started.
public
void
reset
()
This function is useless; it's fine to call
start
on an already-started timer to reset the start time, so
reset
serves no purpose.