mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 22:02:44 +08:00
Using monotonic clock rather than CPU clock
This commit is contained in:
@@ -116,7 +116,7 @@ void getTime(timespec* time)
|
||||
time->tv_sec = mts.tv_sec;
|
||||
time->tv_nsec = mts.tv_nsec;
|
||||
#else
|
||||
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, time);
|
||||
clock_gettime(CLOCK_MONOTONIC, time);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user