SDL Utility
Clock Class Reference

Essentially a timer. More...

#include <Clock.hpp>

Public Member Functions

 Clock ()
 Creates a new Clock. It has not yet been started, call Restart() before doing anything else. More...
 
Time GetElapsedTime ()
 Returns the time elapsed since the last Restart() call. More...
 
Time Restart ()
 Restarts the Clock. More...
 

Detailed Description

Essentially a timer.

Constructor & Destructor Documentation

◆ Clock()

Clock::Clock ( )

Creates a new Clock. It has not yet been started, call Restart() before doing anything else.

Member Function Documentation

◆ GetElapsedTime()

Time Clock::GetElapsedTime ( )

Returns the time elapsed since the last Restart() call.

◆ Restart()

Time Clock::Restart ( )

Restarts the Clock.

Returns
The time elapsed since the last Restart() call.

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