Class SFML::Clock
In: system/Vector3.cpp
Parent: Object

Utility class for manipulating time.

sf::Clock is a lightweight class for measuring time.

Its resolution depends on the underlying OS, but you can generally expect a 1 ms resolution.

Methods

Public Class methods

The clock starts automatically after being constructed.

Public Instance methods

elapsedTime()

Alias for getElapsedTime

elapsed_time()

Alias for getElapsedTime

This function returns the time elapsed since the last call to Reset() (or the construction of the instance if Reset() has not been called) in seconds.

This function puts the time counter back to zero.

[Validate]