1#ifndef XRPL_BASICS_CHRONO_H_INCLUDED
2#define XRPL_BASICS_CHRONO_H_INCLUDED
4#include <xrpl/beast/clock/abstract_clock.h>
5#include <xrpl/beast/clock/basic_seconds_clock.h>
6#include <xrpl/beast/clock/manual_clock.h>
24 duration<int, std::ratio_multiply<days::period, std::ratio<7>>>;
37 date::sys_days{date::year{2000} / 1 / 1} -
38 date::sys_days{date::year{1970} / 1 / 1};
55template <
class Duration>
59 return date::format(
"%Y-%b-%d %T %Z", tp);
71template <
class Duration>
76 return date::format(
"%FT%TZ", tp);
103 using Facade = Clock::Clock;
104 return beast::get_abstract_clock<Facade, Clock>();
A clock whose minimum resolution is one second.
static bool const is_steady
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Stopwatch & stopwatch()
Returns an instance of a wall clock.
static constexpr std::chrono::seconds epoch_offset
Clock for measuring the network time.
std::string to_string_iso(date::sys_time< Duration > tp)
std::string to_string(base_uint< Bits, Tag > const &a)
T time_since_epoch(T... args)