40 #ifndef GEOGRAM_BASIC_STOPWATCH
41 #define GEOGRAM_BASIC_STOPWATCH
45 #include <geogram/basic/logger.h>
78 Stopwatch(
const std::string& task_name,
bool verbose=
true);
110 return now() - process_start_time_;
117 static double process_start_time_;
118 static bool global_stats_;
119 std::chrono::time_point<std::chrono::system_clock> start_;
120 std::string task_name_;
Scope restricted stopwatch.
~Stopwatch()
Stopwatch destructor.
static double process_elapsed_time()
double elapsed_time() const
Get the user elapsed time.
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...
void show_stats()
Displays statistics about the current process.
Global Vorpaline namespace.
void initialize(int flags=GEOGRAM_INSTALL_NONE)
Initialize Geogram.
Types and functions for numbers manipulation.