Geogram Version 1.8.5
A programming library of geometric algorithms
|
A more precise stopwatch. More...
#include <geogram/basic/stopwatch.h>
Public Member Functions | |
ProcessorStopwatch () | |
ProcessorStopwatch constructor. | |
Numeric::uint64 | elapsed_time () const |
Get the elapsed time. | |
Static Public Member Functions | |
static Numeric::uint64 | now () |
A more precise stopwatch.
ProcessorStopwatch behaves like SystemStopwatch except that all measured times are given in microseconds.
Definition at line 135 of file stopwatch.h.
|
inline |
ProcessorStopwatch constructor.
It remembers the current time as the reference time for functions elapsed_time() and print_elapsed_time().
Definition at line 142 of file stopwatch.h.
|
inline |
Get the elapsed time.
Returns time elapsed since the ProcessorStopwatch construction (in microseconds)
Definition at line 156 of file stopwatch.h.
|
static |
Gets the current time (in microseconds).