These functions simplify the use of timers.
Returns the current time.
glt_get_wtime()
returns the time.
- Returns
- The time in seconds.
Creates a timer.
glt_timer_create()
creates a timer.
- Parameters
-
[in,out] | timer | Hande to newly created GLT_timer . |
Destroys a timer.
glt_timer_free()
destroys a timer.
- Parameters
-
[in] | timer | Handle to the target GLT_timer . |
void glt_timer_get_secs |
( |
GLT_timer |
timer, |
|
|
double * |
secs |
|
) |
| |
Obtains the elapsed time.
glt_timer_get_secs()
given a timer. It calculates the elapsed time in seconds.
- Parameters
-
[in] | timer | Handle to the target GLT_timer . |
[out] | secs | Seconds. |
Inits a timer.
glt_timer_start()
inits a timer.
- Parameters
-
[in] | timer | Handle to the target GLT_timer . |
Stops a timer.
glt_timer_stop()
stops a timer.
- Parameters
-
[in] | timer | Handle to the target GLT_timer . |