|
Geogram Version 1.9.7
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. | |
| Stopwatch () | |
| Stopwatch constructor. | |
| double | elapsed_time () const |
| Get the user elapsed time. | |
| ~Stopwatch () | |
| Stopwatch destructor. | |
| void | print_elapsed_time () |
| Prints elapsed time to the Logger since the Stopwatch construction. | |
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).
| void GEO::Stopwatch::print_elapsed_time | ( | ) |
|
inlinestatic |
Gets the total elapsed time since process start (in seconds).
Definition at line 117 of file stopwatch.h.