Go to the source code of this file.
§ sfClock_copy()
Create a new clock by copying an existing one.
- Parameters
-
- Returns
- A new sfClock object which is a copy of clock
§ sfClock_create()
Create a new clock and start it.
- Returns
- A new sfClock object
§ sfClock_destroy()
Destroy a clock.
- Parameters
-
§ sfClock_getElapsedTime()
Get the time elapsed in a clock.
This function returns the time elapsed since the last call to sfClock_restart (or the construction of the object if sfClock_restart has not been called).
- Parameters
-
- Returns
- Time elapsed
§ sfClock_restart()
Restart a clock.
This function puts the time counter back to zero. It also returns the time elapsed since the clock was started.
- Parameters
-
- Returns
- Time elapsed