spot 2.14.5
Loading...
Searching...
No Matches
spot::stopwatch Struct Reference

A simple stopwatch. More...

#include <spot/misc/timer.hh>

Collaboration diagram for spot::stopwatch:

Public Member Functions

void start ()
 Marks the start if the measurement.
double stop ()
 Returns the elapsed duration in seconds.

Protected Types

typedef std::chrono::steady_clock clock

Protected Attributes

clock::time_point start_

Detailed Description

A simple stopwatch.

Member Function Documentation

◆ start()

void spot::stopwatch::start ( )
inline

Marks the start if the measurement.

◆ stop()

double spot::stopwatch::stop ( )
inline

Returns the elapsed duration in seconds.

May be called multiple times, and will always return the duration since the last call to start().


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

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on for spot by doxygen 1.15.0