UFJF - Machine Learning Toolkit  0.51.8
mltk::Timer Class Reference

Wrapper for the implementation of a simple timer. More...

#include <Timer.hpp>

Public Member Functions

 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...
 

Detailed Description

Wrapper for the implementation of a simple timer.

Constructor & Destructor Documentation

◆ Timer()

mltk::Timer::Timer ( )
inline

Contructor already initiate the timer to the current time.

Member Function Documentation

◆ 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: