output/Timer: use std::chrono
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -361,7 +361,7 @@ HttpdOutput::Delay() const
|
||||
}
|
||||
|
||||
return timer->IsStarted()
|
||||
? std::chrono::milliseconds(timer->GetDelay())
|
||||
? timer->GetDelay()
|
||||
: std::chrono::steady_clock::duration::zero();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user