Module dglib.TimerG
| Constructor Summary | |
|---|---|
| public |
() Creates a new TimerG. |
|
(GTimer *gTimer) Creates a TimerG from a GTimer |
|
| Methods Summary | |
|---|---|
| ~this |
() Destroy our gTimer |
| void |
start() Marks a start time, so that future calls to gTimerElapsed() will report the time since start() was called. |
| void |
stop() Marks an end time, so calls to elapsed() will return the difference between this end time and the start time. |
| void |
resume() Resumes a timer that has previously been stopped with stop(). |
| gdouble |
elapsed(gulong microseconds) If timer has been started but not stopped, obtains the time since the timer was started. |
| 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. |