cat3d
A tiny OpenGL 3D engine library written in and for C++.
Public Member Functions | List of all members
cat3d::util::clock Class Reference

Class to measure the passage of time. More...

#include <clock.hpp>

Public Member Functions

 clock ()
 
time restart ()
 Restart the clock. More...
 
time elapsed () const
 Get the elapsed time since the last restart() More...
 

Detailed Description

Class to measure the passage of time.

Constructor & Destructor Documentation

◆ clock()

cat3d::util::clock::clock ( )
Remarks
Always starts the clock.

Member Function Documentation

◆ elapsed()

time cat3d::util::clock::elapsed ( ) const

Get the elapsed time since the last restart()

Returns
time

◆ restart()

time cat3d::util::clock::restart ( )

Restart the clock.

Returns
time The time elapsed since last restart

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