mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Reduce coupling to date.h by calling C++17 chrono functions
This commit is contained in:
committed by
manojsdoshi
parent
64e4a89470
commit
9932a19139
@@ -76,6 +76,8 @@
|
||||
#include <boost/asio/steady_timer.hpp>
|
||||
#include <boost/system/error_code.hpp>
|
||||
|
||||
#include <date/date.h>
|
||||
|
||||
#include <condition_variable>
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
@@ -123,7 +125,7 @@ private:
|
||||
operator()(Duration const& elapsed)
|
||||
{
|
||||
using namespace std::chrono;
|
||||
auto const lastSample = date::ceil<milliseconds>(elapsed);
|
||||
auto const lastSample = ceil<milliseconds>(elapsed);
|
||||
|
||||
lastSample_ = lastSample;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user