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 = std::chrono::system_clock::rep
using period = std::chrono::system_clock::period
using duration = std::chrono::system_clock::duration
using time_point = std::chrono::time_point< lowres_system_clock, duration >

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 = false

Member Function Documentation

◆ now()

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

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