Seastar
High performance C++ framework for concurrent servers
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
seastar::lowres_clock Class Referencefinal

Detailed Description

Low-resolution and efficient steady clock.

This is a monotonic clock with a granularity of 10 ms. Time points from this clock do not correspond to system time.

The primary benefit of this clock is that invoking now() is inexpensive compared to std::chrono::steady_clock::now().

See also
lowres_system_clock for a low-resolution clock which produces time points corresponding to system time.

#include <seastar/core/lowres_clock.hh>

Public Types

using rep = lowres_clock_impl::steady_rep
 
using period = lowres_clock_impl::period
 
using duration = lowres_clock_impl::steady_duration
 
using time_point = lowres_clock_impl::steady_time_point
 

Static Public Member Functions

static time_point now () noexcept
 

Static Public Attributes

static constexpr bool is_steady = true
 

Member Function Documentation

◆ now()

static time_point seastar::lowres_clock::now ( )
inlinestaticnoexcept
Note
Outside of a Seastar application, the result is undefined.

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