Geogram Version 1.8.5
A programming library of geometric algorithms
Loading...
Searching...
No Matches
GEO::ProcessorStopwatch Class Reference

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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ProcessorStopwatch()

GEO::ProcessorStopwatch::ProcessorStopwatch ( )
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.

Member Function Documentation

◆ elapsed_time()

Numeric::uint64 GEO::ProcessorStopwatch::elapsed_time ( ) const
inline

Get the elapsed time.

Returns time elapsed since the ProcessorStopwatch construction (in microseconds)

Definition at line 156 of file stopwatch.h.

◆ now()

static Numeric::uint64 GEO::ProcessorStopwatch::now ( )
static

Gets the current time (in microseconds).


The documentation for this class was generated from the following file: