Geogram
Version 1.9.1
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. More... | |
Stopwatch () | |
Stopwatch constructor. More... | |
double | elapsed_time () const |
Get the user elapsed time. More... | |
~Stopwatch () | |
Stopwatch destructor. More... | |
Static Public Member Functions | |
static double | now () |
static double | process_elapsed_time () |
static void | initialize () |
static void | show_stats () |
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 69 of file stopwatch.h.
GEO::Stopwatch::Stopwatch | ( | const std::string & | task_name, |
bool | verbose = true |
||
) |
GEO::Stopwatch::~Stopwatch | ( | ) |
double GEO::Stopwatch::elapsed_time | ( | ) | const |
Get the user elapsed time.
Returns the user time elapsed since the StopWatch construction (in seconds)
|
static |
Gets the current time since epoch (in seconds).
|
inlinestatic |
Gets the total elapsed time since process start (in seconds).
Definition at line 109 of file stopwatch.h.