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
16
class
BasicSecondsClock
17
{
18
public
:
19
using
Clock
=
std::chrono::steady_clock
;
20
21
explicit
BasicSecondsClock
() =
default
;
22
23
using
rep
= Clock::rep;
24
using
period
= Clock::period;
25
using
duration
= Clock::duration;
26
using
time_point
= Clock::time_point;
27
28
static
bool
const
is_steady
=
// NOLINT(readability-identifier-naming)
29
Clock::is_steady;
30
31
static
time_point
32
now
();
33
};
34
35
}
// namespace beast
chrono
beast::BasicSecondsClock::period
Clock::period period
Definition
basic_seconds_clock.h:24
beast::BasicSecondsClock::is_steady
static bool const is_steady
Definition
basic_seconds_clock.h:28
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:19
beast::BasicSecondsClock::duration
Clock::duration duration
Definition
basic_seconds_clock.h:25
beast::BasicSecondsClock::time_point
Clock::time_point time_point
Definition
basic_seconds_clock.h:26
beast::BasicSecondsClock::rep
Clock::rep rep
Definition
basic_seconds_clock.h:23
beast
Definition
base_uint.h:673
std::chrono::steady_clock
Generated by
1.16.1