use MONOTONIC instead of REALTIME

This commit is contained in:
c0ntrol
2020-07-06 23:48:00 +02:00
parent 1f5fdef5a4
commit b45457d858
4 changed files with 10 additions and 10 deletions

View File

@@ -58,7 +58,7 @@ static void net_delay(long ms, long sec )
struct timespec ts;
ts.tv_sec = sec;
ts.tv_nsec = MS_TO_NANO( ms );
clock_nanosleep( CLOCK_REALTIME,0, &ts, NULL );
clock_nanosleep( CLOCK_MONOTONIC,0, &ts, NULL );
}
static int my_screen_id = -1;