27#ifndef EASY3D_UTIL_STOP_WATCH_H
28#define EASY3D_UTIL_STOP_WATCH_H
74 double seconds()
const;
A high resolution stop watch/timer.
Definition: stop_watch.h:55
void restart()
restarts the timer. It has the same effect as start()
Definition: stop_watch.cpp:62
~StopWatch()=default
destructor.
void start()
starts the timer
Definition: stop_watch.cpp:49
double elapsed_seconds(int num_digits=1) const
returns user elapsed time (in seconds) since the construction / start.
Definition: stop_watch.cpp:81
StopWatch()
default constructor. The watch will automatically start after construction.
Definition: stop_watch.cpp:44
std::string time_string(int num_digits=1) const
the elapsed time string, e.g., 88ms, 2.3s, 1.7m, 0.1h. This function automatically determines the bes...
Definition: stop_watch.cpp:86
Definition: collider.cpp:182