Flow 1.0.1
Flow project: Full implementation reference.
Public Attributes | Related Functions | List of all members
flow::perf::Time_pt_set Struct Reference

Convenience wrapper around an array<Time_pt, N>, which stores a time point for each of the N possible clock types in perf::Clock_type. More...

#include <clock_type_fwd.hpp>

Collaboration diagram for flow::perf::Time_pt_set:
[legend]

Public Attributes

std::array< Time_pt, size_t(Clock_type::S_END_SENTINEL)> m_values
 The underlying data, directly readable and writable by user. NOT ZERO-INITIALIZED ON CONSTRUCTION (or ever). More...
 

Related Functions

(Note that these are not member functions.)

Duration_set operator- (const Time_pt_set &to, const Time_pt_set &from)
 Returns a Duration_set representing the time that passed since from to to (negative if to happened earlier), for each Clock_type stored. More...
 

Detailed Description

Convenience wrapper around an array<Time_pt, N>, which stores a time point for each of the N possible clock types in perf::Clock_type.

All discussion on Duration_set applies here equally.

Definition at line 195 of file clock_type_fwd.hpp.

Friends And Related Function Documentation

◆ operator-()

Duration_set operator- ( const Time_pt_set to,
const Time_pt_set from 
)
related

Returns a Duration_set representing the time that passed since from to to (negative if to happened earlier), for each Clock_type stored.

Parameters
toThe minuend set of time points.
fromThe subtrahend set of time points.
Returns
See above.

Definition at line 26 of file clock_type.cpp.

References flow::perf::Duration_set::m_values, and m_values.

Member Data Documentation

◆ m_values

std::array<Time_pt, size_t(Clock_type::S_END_SENTINEL)> flow::perf::Time_pt_set::m_values

The underlying data, directly readable and writable by user. NOT ZERO-INITIALIZED ON CONSTRUCTION (or ever).

Definition at line 198 of file clock_type_fwd.hpp.

Referenced by flow::perf::Checkpointing_timer::now(), flow::perf::operator+=(), and operator-().


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