Public Member Functions | List of all members
ime::Clock Class Reference

Class that measures time. More...

#include <Clock.h>

Public Member Functions

 Clock ()
 Default constructor. More...
 
Time getElapsedTime () const
 Get the elapsed time. More...
 
Time restart ()
 Restart the clock. More...
 

Detailed Description

Class that measures time.

Definition at line 35 of file Clock.h.

Constructor & Destructor Documentation

◆ Clock()

ime::Clock::Clock ( )

Default constructor.

The clock is started immediately after construction

Member Function Documentation

◆ getElapsedTime()

Time ime::Clock::getElapsedTime ( ) const

Get the elapsed time.

Returns
The elapsed time

This function returns the time passed since the clock was created or the time passed since the last call to restart

See also
restart

◆ restart()

Time ime::Clock::restart ( )

Restart the clock.

Returns
The elapsed time

This function resets the counter to zero and returns the time passed since the clock was started


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