mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Convert more timing code to <chrono>
* LoadMonitor * Entry * Import
This commit is contained in:
@@ -49,7 +49,7 @@ ValidatorSite::ValidatorSite (
|
||||
ValidatorSite::~ValidatorSite()
|
||||
{
|
||||
std::unique_lock<std::mutex> lock{state_mutex_};
|
||||
if (timer_.expires_at().time_since_epoch().count())
|
||||
if (timer_.expires_at() > clock_type::time_point{})
|
||||
{
|
||||
if (! stopping_)
|
||||
{
|
||||
@@ -100,7 +100,7 @@ void
|
||||
ValidatorSite::start ()
|
||||
{
|
||||
std::lock_guard <std::mutex> lock{state_mutex_};
|
||||
if (! timer_.expires_at().time_since_epoch().count())
|
||||
if (timer_.expires_at() == clock_type::time_point{})
|
||||
setTimer ();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user