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

Detailed Description

Low-resolution and efficient system clock.

This clock has the same granularity as lowres_clock, but it is not required to be monotonic and its time points correspond to system time.

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

#include <seastar/core/lowres_clock.hh>

Public Types

using rep = lowres_clock_impl::system_rep
 
using period = lowres_clock_impl::period
 
using duration = lowres_clock_impl::system_duration
 
using time_point = lowres_clock_impl::system_time_point
 

Static Public Member Functions

static time_point now () noexcept
 
static std::time_t to_time_t (time_point t) noexcept
 
static time_point from_time_t (std::time_t t) noexcept
 

Static Public Attributes

static constexpr bool is_steady = lowres_clock_impl::base_system_clock::is_steady
 

Member Function Documentation

◆ now()

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

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