GitHub link
Polygon Mesh Processing Library
Timer Class Reference

A simple timer class. More...

#include <pmp/Timer.h>

Public Member Functions

 Timer ()=default
 Constructor. More...
 
void start ()
 Start time measurement. More...
 
void cont ()
 Continue measurement, accumulates elapased times. More...
 
Timerstop ()
 Stop time measurement, return elapsed time in ms. More...
 
double elapsed () const
 Return elapsed time in ms (watch has to be stopped). More...
 

Detailed Description

A simple timer class.

Constructor & Destructor Documentation

◆ Timer()

Timer ( )
default

Constructor.

Member Function Documentation

◆ cont()

void cont ( )
inline

Continue measurement, accumulates elapased times.

◆ elapsed()

double elapsed ( ) const
inline

Return elapsed time in ms (watch has to be stopped).

◆ start()

void start ( )
inline

Start time measurement.

◆ stop()

Timer & stop ( )
inline

Stop time measurement, return elapsed time in ms.