output/Timer: use std::chrono

This commit is contained in:
Max Kellermann
2016-12-28 10:11:07 +01:00
parent d5e422970c
commit 71e7d32b08
5 changed files with 22 additions and 18 deletions

View File

@@ -208,7 +208,7 @@ inline std::chrono::steady_clock::duration
FifoOutput::Delay() const
{
return timer->IsStarted()
? std::chrono::milliseconds(timer->GetDelay())
? timer->GetDelay()
: std::chrono::steady_clock::duration::zero();
}

View File

@@ -51,7 +51,7 @@ public:
std::chrono::steady_clock::duration Delay() const {
return sync && timer->IsStarted()
? std::chrono::milliseconds(timer->GetDelay())
? timer->GetDelay()
: std::chrono::steady_clock::duration::zero();
}

View File

@@ -361,7 +361,7 @@ HttpdOutput::Delay() const
}
return timer->IsStarted()
? std::chrono::milliseconds(timer->GetDelay())
? timer->GetDelay()
: std::chrono::steady_clock::duration::zero();
}