Change clock system from 'system_clock' to 'steady_clock' 68/227868/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Tue, 17 Mar 2020 02:11:14 +0000 (11:11 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Tue, 17 Mar 2020 02:11:18 +0000 (11:11 +0900)
commit38d07a14f44b50282ff5093c2d4da0c419b1a540
treecef5d23633b03ff7c083d116c2e0575291f22ad9
parentd1bce194ecba74e8d3442a1669dfc6fb1bb2f2a2
Change clock system from 'system_clock' to 'steady_clock'

system_clock can get the accurate current time, but it is not monotonic clock system.
So the time from system_clock can be jumped if initializing system_clock is delayed.

Therefore, system_clock is not good to check exact time delay.
However, this module use time for checking expired time of audio data.
Thus, monotonic clock system is better to meet this purpose.

Because of this reason, this patch changes time system from system_clock to steady_clock.

Change-Id: I3860646c0fe4fc814eeea907597363a17951e8ce
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
plugins/wakeup-manager/dependency-default/src/dependency_default_audio.cpp
plugins/wakeup-manager/src/wakeup_audio_manager.cpp
plugins/wakeup-manager/src/wakeup_manager.cpp