Skip to content
Commit 78f172e4 authored by Raman Tenneti's avatar Raman Tenneti
Browse files

[libc] Implement gettimeofday



Implement gettimeofday per
.../onlinepubs/9699919799/functions/gettimeofday.html.
This call clock_gettime to implement gettimeofday function.

Tested:
Limited unit test: This makes a call and checks that no error was
returned. Used nanosleep for 100 microseconds and verfified it
returns a value that elapses more than 100 microseconds and less
than 300 microseconds.

Co-authored-by: default avatarJeff Bailey <jeffbailey@google.com>

Differential Revision: https://reviews.llvm.org/D137881
parent 1fb5c7a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment