Change clock source to CLOCK_MONOTONIC in 'pthread_cond_timedwait'