xrpld
Loading...
Searching...
No Matches
include
xrpl
beast
clock
basic_seconds_clock.h
1
#pragma once
2
3
#include <
chrono
>
4
5
namespace
beast
{
6
17
class
BasicSecondsClock
18
{
19
public
:
20
using
Clock
=
std::chrono::steady_clock
;
21
22
explicit
BasicSecondsClock
() =
default
;
23
24
using
rep
= Clock::rep;
25
using
period
= Clock::period;
26
using
duration
= Clock::duration;
27
using
time_point
= Clock::time_point;
28
29
static
bool
const
is_steady
=
// NOLINT(readability-identifier-naming)
30
Clock::is_steady;
31
32
static
time_point
33
now
();
34
};
35
36
}
// namespace beast
chrono
beast::BasicSecondsClock::period
Clock::period period
Definition
basic_seconds_clock.h:25
beast::BasicSecondsClock::is_steady
static bool const is_steady
Definition
basic_seconds_clock.h:29
beast::BasicSecondsClock::now
static time_point now()
Definition
basic_seconds_clock.cpp:82
beast::BasicSecondsClock::BasicSecondsClock
BasicSecondsClock()=default
beast::BasicSecondsClock::Clock
std::chrono::steady_clock Clock
Definition
basic_seconds_clock.h:20
beast::BasicSecondsClock::duration
Clock::duration duration
Definition
basic_seconds_clock.h:26
beast::BasicSecondsClock::time_point
Clock::time_point time_point
Definition
basic_seconds_clock.h:27
beast::BasicSecondsClock::rep
Clock::rep rep
Definition
basic_seconds_clock.h:24
beast
Definition
base_uint.h:691
std::chrono::steady_clock
Generated by
1.16.1