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

A helper class to measure execution time for benchmarking purposes. More...

#include <ThreadPool.hpp>

Public Member Functions

void start ()
 Start (or restart) measuring time. More...
 
void stop ()
 Stop measuring time and store the elapsed time since start(). More...
 
i64 ms () const
 Get the number of milliseconds that have elapsed between start() and stop(). More...
 

Detailed Description

A helper class to measure execution time for benchmarking purposes.

Member Function Documentation

◆ ms()

i64 mltk::timer::ms ( ) const
inline

Get the number of milliseconds that have elapsed between start() and stop().

Returns
The number of milliseconds.

◆ start()

void mltk::timer::start ( )
inline

Start (or restart) measuring time.

◆ stop()

void mltk::timer::stop ( )
inline

Stop measuring time and store the elapsed time since start().


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