add ut for timer_service
fix bug in timer_service, due to CLOCK_MONOTONIC_COARSE's resolution is higher than 1ms in some systems