The difftime function computes the difference between two calendar times: time1 - time0 as per as per 7.27.2.2 section in http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2478.pdf. double difftime(time_t time1, time_t time0); Tested: Unit tests Co-authored-by: Jeff Bailey <jeffbailey@google.com> Reviewed By: jeffbailey Differential Revision: https://reviews.llvm.org/D136631
63 lines
1.0 KiB
ReStructuredText
63 lines
1.0 KiB
ReStructuredText
=======================
|
|
Date and Time Functions
|
|
=======================
|
|
|
|
.. include:: check.rst
|
|
|
|
---------------
|
|
Source location
|
|
---------------
|
|
|
|
- The main source for string 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
|
|
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
|
|
=================== =======
|
|
|