1#ifndef BEAST_CHRONO_MANUAL_CLOCK_H_INCLUDED 
    2#define BEAST_CHRONO_MANUAL_CLOCK_H_INCLUDED 
    4#include <xrpl/beast/clock/abstract_clock.h> 
    5#include <xrpl/beast/utility/instrumentation.h> 
   48            !Clock::is_steady || when >= 
now_,
 
   49            "beast::manual_clock::set(time_point) : forward input");
 
 
   54    template <
class Integer>
 
   56    set(Integer seconds_from_epoch)
 
 
   62    template <
class Rep, 
class Period>
 
   67            !Clock::is_steady || (
now_ + elapsed) >= 
now_,
 
   68            "beast::manual_clock::advance(duration) : forward input");
 
 
 
Abstract interface to a clock.
 
typename Clock::time_point time_point
 
typename Clock::duration duration
 
Manual clock implementation.
 
manual_clock & operator++()
Convenience for advancing the clock by one second.
 
void set(Integer seconds_from_epoch)
Convenience for setting the time in seconds from epoch.
 
void advance(std::chrono::duration< Rep, Period > const &elapsed)
Advance the clock by a duration.
 
time_point now() const override
Returns the current time.
 
void set(time_point const &when)
Set the current time of the manual clock.
 
manual_clock(time_point const &now=time_point(duration(0)))