PrevUpHomeNext

roundCloseTime

Calculates the close time for a ledger, given a close time resolution.

Synopsis
template<
    class Clock,
    class Duration,
    class Rep,
    class Period>
std::chrono::time_point< Clock, Duration >
roundCloseTime(
    std::chrono::time_point< Clock, Duration > closeTime,
    std::chrono::duration< Rep, Period > closeResolution);
Description
Parameters

Name

Description

closeTime

The time to be rouned.

closeResolution

The resolution

Return Value

closeTime rounded to the nearest multiple of closeResolution. Rounds up if closeTime is midway between multiples of closeResolution.

Header

#include <ripple/consensus/LedgerTiming.h>


PrevUpHomeNext