state-observation 1.7.0
General implementation of observers.
Loading...
Searching...
No Matches
stateObservation::tools::SimplestStopwatch Struct Reference

Public Types

using clock
using time_ns = clock::time_point

Public Member Functions

void start ()
double stop ()

Public Attributes

time_ns startTime

Detailed Description

Definition at line 700 of file definitions.hpp.

Member Typedef Documentation

◆ clock

Initial value:
typename std::conditional<std::chrono::high_resolution_clock::is_steady,
std::chrono::high_resolution_clock,
std::chrono::steady_clock>::type

Always pick a steady clock

Definition at line 703 of file definitions.hpp.

◆ time_ns

using stateObservation::tools::SimplestStopwatch::time_ns = clock::time_point

Definition at line 706 of file definitions.hpp.

Member Function Documentation

◆ start()

void stateObservation::tools::SimplestStopwatch::start ( )
inline

Definition at line 709 of file definitions.hpp.

◆ stop()

double stateObservation::tools::SimplestStopwatch::stop ( )
inline

provides the time since the start the value is in nanoseconds

Definition at line 716 of file definitions.hpp.

Member Data Documentation

◆ startTime

time_ns stateObservation::tools::SimplestStopwatch::startTime

Definition at line 707 of file definitions.hpp.


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