FlexBox - A Flexible Primal-Dual ToolBox
Public Member Functions | List of all members
Timer Class Reference

class for timing execution times More...

#include <tools.h>

Public Member Functions

void reset ()
 resets or starts the timer
 
void end ()
 ends the timer
 
double elapsed () const
 returns the duration More...
 

Detailed Description

class for timing execution times

Timer is a class for measuring execution times of the primal dual algorithm. It uses std::chrono and additionally cudaDeviceSynchronize() if the CUDA version of FlexBox has been compiled.

Member Function Documentation

◆ elapsed()

double Timer::elapsed ( ) const
inline

returns the duration

returns the duration between reset() and end() in seconds (as double) or 0.0 if timer has not been stopped

Returns
duration in seconds

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