Go to the source code of this file.
Classes | |
| struct | StopWatch |
Functions | |
| EXTERN_C_BEGIN LIBGIFT_EXPORT void | stopwatch_init (StopWatch *sw) |
| LIBGIFT_EXPORT void | stopwatch_finish (StopWatch *sw) |
| LIBGIFT_EXPORT StopWatch * | stopwatch_new (BOOL start) |
| LIBGIFT_EXPORT void | stopwatch_free (StopWatch *sw) |
| LIBGIFT_EXPORT double | stopwatch_free_elapsed (StopWatch *sw) |
| LIBGIFT_EXPORT void | stopwatch_start (StopWatch *sw) |
| LIBGIFT_EXPORT void | stopwatch_stop (StopWatch *sw) |
| LIBGIFT_EXPORT double | stopwatch_elapsed (StopWatch *sw, unsigned long *msec) |
Calculates the elapsed time between calls.
|
||||||||||||
|
Calculate the amount of time elapsed between start and stop. If the timer is currently active, the time up until this call is calculated.
|
|
|
Release usage of the previously initialized StopWatch object. This will not free the memory pointed to by sw, as that will be left up to the caller. See stopwatch_init for this interfaces constructor. |
|
|
Unallocate all memory associated with the StopWatch object. See stopwatch_finish. |
|
|
Helper identical to calling stopwatch_elapsed, and then immediately stopwatch_free. Useful when you want a simple single execution timer instance. |
|
|
Alternate interface for initializing a previously allocated StopWatch object. The suggested usage of this interface is:
|
|
|
Allocate a new StopWatch object. See stopwatch_init.
|
|
|
Start the timer. |
|
|
Stop the timer. |
1.3.7