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

Class of time points of the monotone clock in Unix. More...

#include <stat_bench/clock/monotone_time_point.h>

+ Collaboration diagram for stat_bench::clock::UnixMonotoneTimePoint:

Public Member Functions

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

Static Public Member Functions

static auto now () noexcept -> UnixMonotoneTimePoint
 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 Unix.

Note
This class is defined only in Unix.

Definition at line 101 of file monotone_time_point.h.

Member Function Documentation

◆ now()

static auto stat_bench::clock::UnixMonotoneTimePoint::now ( ) -> UnixMonotoneTimePoint
staticnodiscardnoexcept

Get the current time from the monotone clock.

Returns
Time point.

◆ operator-()

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

Calculate a duration between two time points.

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

◆ resolution()

static auto stat_bench::clock::UnixMonotoneTimePoint::resolution ( ) -> Duration
staticnodiscardnoexcept

Get the resolution of the monotone clock.

Returns
Resolution.

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