Name
Timers -- functions to time operations.
Description
Timers can be used to time operations, in a similar way to a stopwatch.
Call g_timer_new() to create the timer, g_timer_start() to start it,
g_timer_elapsed() to determine the time which has elapsed since the timer
was started, and g_timer_stop() to stop the timer.
Details
struct GTimer
An opaque data structure which holds the timer information.
g_timer_new ()
Creates a new timer.
g_timer_start ()
| void        g_timer_start                   (GTimer *timer); | 
Starts the timer.
g_timer_stop ()
| void        g_timer_stop                    (GTimer *timer); | 
Stops the timer.
g_timer_reset ()
| void        g_timer_reset                   (GTimer *timer); | 
Resets the elapsed time to 0, leaving the timer running.
g_timer_destroy ()
| void        g_timer_destroy                 (GTimer *timer); | 
Destroys the timer, freeing the memory allocated for it.