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 ~task_quota. 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 = std::chrono::steady_clock::rep
 
using period = std::chrono::steady_clock::period
 
using duration = std::chrono::steady_clock::duration
 
using time_point = std::chrono::time_point< lowres_clock, duration >
 

Static Public Member Functions

static time_point now () noexcept
 
static void update () 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: