G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsGenericStopwatch< Clock > Class Template Reference

Detailed Description

template<typename Clock>
class gismo::gsGenericStopwatch< Clock >

A Stopwatch object can be used to measure execution time of code, algorithms, etc.

This GenericStopwatch can be initialized in two time-taking modes, CPU time and real time (wall time).

Template Parameters
Clockclock (eg. system specific) to use for measuring the time.

Public Member Functions

double elapsed () const
 Returns the last recorded elapsed time.
 
 gsGenericStopwatch ()
 Declares a stop-watch.
 
void restart ()
 Start taking the time.
 
double stop ()
 Return elapsed time in seconds.