spot  2.11.6
Public Member Functions | Protected Types | Protected Attributes | List of all members
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. More...
 
double stop ()
 Returns the elapsed duration in seconds. More...
 

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 Fri Feb 27 2015 10:00:07 for spot by doxygen 1.9.1