Branch: refs/heads/master
Home: https://github.com/tianocore/edk2-libc
Commit: 95838e1727e97cdb97963a1d90ac5556dfd16383
https://github.com/tianocore/edk2-libc/commit/95838e1727e97cdb97963a1d90ac5556dfd16383
Author: Matan Perel <[email protected]>
Date: 2026-09-07 (Mon, 07 Sep 2026)
Changed paths:
M StdLib/LibC/Time/gettimeofday.c
Log Message:
-----------
StdLib/LibC: Fix gettimeofday() always returning tv_usec = 0
Fix the current implementation of `gettimeofday()` that always sets
`tp->tv_usec = 0`, discarding all sub-second precision.
Replace the `time(NULL)` call with a direct `gRT->GetTime()` call, so both
`tv_sec` and `tv_usec` are derived from a single atomic EFI time snapshot.
This PR fixes this issue: https://github.com/tianocore/edk2-libc/issues/119
Signed-off-by: Matan Perel <[email protected]>
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2-libc/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits