Geogram Version 1.8.5
A programming library of geometric algorithms
|
Scope restricted stopwatch. More...
#include <geogram/basic/stopwatch.h>
Public Member Functions | |
Stopwatch (const std::string &task_name, bool verbose=true) | |
Stopwatch constructor. | |
double | elapsed_time () const |
Get the user elapsed time. | |
~Stopwatch () | |
Stopwatch destructor. | |
Scope restricted stopwatch.
Stopwatch prints the elapsed time since its construction when it goes out of scope. It uses SystemStopwatch to measure time.
Definition at line 179 of file stopwatch.h.
|
inline |
Stopwatch constructor.
[in] | task_name | name of the job to measure. This name is used as a Logger feature when displaying the elapsed time. |
[in] | verbose | if true, then elapsed time is displayed when this Stopwatch is destroyed, else nothing is displayed. |
Definition at line 188 of file stopwatch.h.
|
inline |
Stopwatch destructor.
This prints the time epalsed since the Stopwatch construction
Definition at line 207 of file stopwatch.h.
|
inline |
Get the user elapsed time.
Returns the user time elapsed since the SystemStopWatch construction (in seconds)
Definition at line 197 of file stopwatch.h.