Loading...
Searching...
No Matches
sf::Clock Class Reference

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

#include <SFML/System/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

◆ Clock()

sf::Clock::Clock ( )

Default constructor.

Member Function Documentation

◆ GetElapsedTime()

float sf::Clock::GetElapsedTime ( ) const

Get the time elapsed since last reset.

Returns
Time elapsed, in seconds

◆ Reset()

void sf::Clock::Reset ( )

Restart the timer.


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