Documentation of SFML 1.6

Warning: this page refers to an old version of SFML. Click here to switch to the latest version.
sf::Clock Class Reference

Clock is an utility class for manipulating time. More...

#include <Clock.hpp>

Public Member Functions

 Clock ()
 Default constructor.
 
float GetElapsedTime () const
 Get the time elapsed since last reset.
 
void Reset ()
 Restart the timer.
 

Detailed Description

Clock is an utility class for manipulating time.

Definition at line 39 of file Clock.hpp.

Constructor & Destructor Documentation

sf::Clock::Clock ( )

Default constructor.

Member Function Documentation

float sf::Clock::GetElapsedTime ( ) const

Get the time elapsed since last reset.

Returns
Time elapsed, in seconds
void sf::Clock::Reset ( )

Restart the timer.


The documentation for this class was generated from the following file: