mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 18:00:16 +00:00
LibC: Use CLOCK_REALTIME_COARSE for gettimeofday()
This doesn't need to use our highest-precision timestamp.
This commit is contained in:
parent
11456ebc00
commit
afa225f55c
Notes:
sideshowbarker
2024-07-18 07:09:16 +09:00
Author: https://github.com/awesomekling
Commit: afa225f55c
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ int gettimeofday(struct timeval* __restrict__ tv, void* __restrict__)
|
|||
}
|
||||
|
||||
struct timespec ts = {};
|
||||
if (clock_gettime(CLOCK_REALTIME, &ts) < 0)
|
||||
if (clock_gettime(CLOCK_REALTIME_COARSE, &ts) < 0)
|
||||
return -1;
|
||||
|
||||
TIMESPEC_TO_TIMEVAL(tv, &ts);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue