spot  2.8.3
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::high_resolution_clock clock

Protected Attributes

clock::time_point start_

Detailed Description

A simple stopwatch.

Member Function Documentation

◆ start()

void spot::stopwatch::start ( )

Marks the start if the measurement.

◆ stop()

double spot::stopwatch::stop ( )

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