cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
Loading...
Searching...
No Matches
stat_bench::clock::StdMonotoneTimePoint Class Reference

Class of time points of the monotone clock in C++ standard library. More...

#include <stat_bench/clock/monotone_time_point.h>

+ Collaboration diagram for stat_bench::clock::StdMonotoneTimePoint:

Public Member Functions

auto operator- (const StdMonotoneTimePoint &right) const noexcept -> Duration
 Calculate a duration between two time points.
 

Static Public Member Functions

static auto now () noexcept -> StdMonotoneTimePoint
 Get the current time from the monotone clock.
 
static auto resolution () noexcept -> Duration
 Get the resolution of the monotone clock.
 

Detailed Description

Class of time points of the monotone clock in C++ standard library.

Note
This class is defined for fallback for environments which is not Windows of Unix.

Definition at line 149 of file monotone_time_point.h.

Member Function Documentation

◆ now()

auto stat_bench::clock::StdMonotoneTimePoint::now ( ) -> StdMonotoneTimePoint
staticnodiscardnoexcept

Get the current time from the monotone clock.

Returns
Time point.

Definition at line 137 of file monotone_time_point.cpp.

◆ operator-()

auto stat_bench::clock::StdMonotoneTimePoint::operator- ( const StdMonotoneTimePoint & right) const -> Duration
nodiscardnoexcept

Calculate a duration between two time points.

Parameters
[in]rightRight-hand-side object.
Returns
Duration.

Definition at line 130 of file monotone_time_point.cpp.

◆ resolution()

auto stat_bench::clock::StdMonotoneTimePoint::resolution ( ) -> Duration
staticnodiscardnoexcept

Get the resolution of the monotone clock.

Returns
Resolution.

Definition at line 141 of file monotone_time_point.cpp.


The documentation for this class was generated from the following files: