system/PeriodClock: use std::chrono::steady_clock

This commit is contained in:
Max Kellermann
2016-12-27 22:47:20 +01:00
parent 28e743ba70
commit 4011899846
3 changed files with 27 additions and 25 deletions

View File

@@ -52,7 +52,7 @@ int
volume_level_get(const MultipleOutputs &outputs)
{
if (last_hardware_volume >= 0 &&
!hardware_volume_clock.CheckUpdate(1000))
!hardware_volume_clock.CheckUpdate(std::chrono::seconds(1)))
/* throttle access to hardware mixers */
return last_hardware_volume;