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

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

#include <stat_bench/clock/monotone_time_point.h>

+ Collaboration diagram for stat_bench::clock::WinMonotoneTimePoint:

Public Member Functions

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

Static Public Member Functions

static auto now () noexcept -> WinMonotoneTimePoint
 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 Windows.

Note
This class is defined only in Windows.

Definition at line 51 of file monotone_time_point.h.

Member Function Documentation

◆ now()

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

Get the current time from the monotone clock.

Returns
Time point.

◆ operator-()

auto stat_bench::clock::WinMonotoneTimePoint::operator- ( const WinMonotoneTimePoint & 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::WinMonotoneTimePoint::resolution ( ) -> Duration
staticnodiscardnoexcept

Get the resolution of the monotone clock.

Returns
Resolution.

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