40#ifndef GEOGRAM_BASIC_STOPWATCH
41#define GEOGRAM_BASIC_STOPWATCH
78 Stopwatch(
const std::string& task_name,
bool verbose=
true);
118 return now() - process_start_time_;
121 static void initialize();
122 static void show_stats();
125 static double process_start_time_;
126 static bool global_stats_;
127 std::chrono::time_point<std::chrono::system_clock> start_;
128 std::string task_name_;
Scope restricted stopwatch.
~Stopwatch()
Stopwatch destructor.
static double process_elapsed_time()
double elapsed_time() const
Get the user elapsed time.
void print_elapsed_time()
Prints elapsed time to the Logger since the Stopwatch construction.
Stopwatch(const std::string &task_name, bool verbose=true)
Stopwatch constructor.
Stopwatch()
Stopwatch constructor.
Common include file, providing basic definitions. Should be included before anything else by all head...
Generic logging mechanism.
Global Vorpaline namespace.
Types and functions for numbers manipulation.