Wrapper for the implementation of a simple timer.
More...
#include <Timer.hpp>
|
| Timer () |
| Contructor already initiate the timer to the current time. More...
|
|
void | reset () |
| Set the timer to the current time. More...
|
|
template<typename Rep = double, typename Units = typename std::chrono::milliseconds> |
double | elapsed () const |
| Returns the elapsed time. More...
|
|
Wrapper for the implementation of a simple timer.
◆ Timer()
Contructor already initiate the timer to the current time.
◆ elapsed()
template<typename Rep = double, typename Units = typename std::chrono::milliseconds>
double mltk::Timer::elapsed |
( |
| ) |
const |
|
inline |
Returns the elapsed time.
- Returns
- double
◆ reset()
void mltk::Timer::reset |
( |
| ) |
|
|
inline |
Set the timer to the current time.
The documentation for this class was generated from the following file: