Files
llvm/libc/docs/date_and_time.rst
Raman Tenneti 78f172e45a [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: Jeff Bailey <jeffbailey@google.com>

Differential Revision: https://reviews.llvm.org/D137881
2022-11-11 18:02:33 -08:00

63 lines
1.0 KiB
ReStructuredText

=======================
Date and Time Functions
=======================
.. include:: check.rst
---------------
Source location
---------------
- The main source for time functions is located at: ``libc/src/time``
---------------------
Implementation Status
---------------------
============= =======
Function_Name C99
============= =======
clock
mktime |check|
time
asctime |check|
ctime
gmtime |check|
localtime
strftime
============= =======
=================== =======
Function_Name POSIX
=================== =======
asctime |check|
asctime_r |check|
clock
clock_getcpuclockid
clock_getres
clock_gettime |check|
clock_nanosleep
clock_settime
ctime
ctime_r
difftime |check|
getdate
gettimeofday |check|
gmtime |check|
gmtime_r |check|
localtime
localtime_r
mktime |check|
nanosleep |check|
strftime
strptime
time
timer_create
timer_delete
timer_gettime
timer_getoverrun
timer_settime
tzset
=================== =======