Clock.h File Reference

#include <SFML/Config.h>

Go to the source code of this file.


Typedefs

typedef sfClock sfClock
 sfClock is an utility structure for manipulating time

Functions

CSFML_API sfClocksfClock_Create ()
 Create a new clock and start it.
CSFML_API void sfClock_Destroy (sfClock *Clock)
 Destroy an existing clock.
CSFML_API float sfClock_GetTime (sfClock *Clock)
 Get the time elapsed for a clock.
CSFML_API void sfClock_Reset (sfClock *Clock)
 Restart a clock.

Typedef Documentation

typedef struct sfClock sfClock

sfClock is an utility structure for manipulating time

Definition at line 37 of file Clock.h.


Function Documentation

CSFML_API sfClock* sfClock_Create (  ) 

Create a new clock and start it.

Returns:
A new sfClock object

CSFML_API void sfClock_Destroy ( sfClock Clock  ) 

Destroy an existing clock.

Parameters:
Clock : Clock to delete

CSFML_API float sfClock_GetTime ( sfClock Clock  ) 

Get the time elapsed for a clock.

Parameters:
Clock : Clock to get time from

CSFML_API void sfClock_Reset ( sfClock Clock  ) 

Restart a clock.

Parameters:
Clock : Clock to restart