Commit 7d16f4fb authored by jehan's avatar jehan

CLOCK_BOOTTIME not defined in Android, use REALTIME instead

parent a9abab6a
......@@ -487,7 +487,7 @@ static int find_best_clock_id () {
#ifndef ANDROID
#define DEFAULT_CLOCK_MODE CLOCK_MONOTONIC
#else
#define DEFAULT_CLOCK_MODE CLOCK_BOOTTIME
#define DEFAULT_CLOCK_MODE CLOCK_REALTIME /*monotonic clock stop during sleep mode*/
#endif
if (clock_id==-1) {
if (clock_gettime(DEFAULT_CLOCK_MODE,&ts)!=1){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment