Make use of chrono literals from std library

This commit is contained in:
Chocobo1 2022-06-22 16:36:10 +08:00
commit 6de72ecc77
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
17 changed files with 57 additions and 32 deletions

View file

@ -29,14 +29,16 @@
#include "bandwidthscheduler.h"
#include <chrono>
#include <utility>
#include <QDate>
#include <QTime>
#include <QTimer>
#include "base/preferences.h"
using namespace std::chrono_literals;
BandwidthScheduler::BandwidthScheduler(QObject *parent)
: QObject(parent)
, m_lastAlternative(false)
@ -51,7 +53,7 @@ void BandwidthScheduler::start()
// Timeout regularly to accommodate for external system clock changes
// eg from the user or from a timesync utility
m_timer.start(30000);
m_timer.start(30s);
}
bool BandwidthScheduler::isTimeForAlternative() const