[libc-commits] [PATCH] D136562: [libc] Add implementation of difftime function.

Jeff Bailey via libc-commits libc-commits at lists.llvm.org
Sun Oct 23 13:04:38 PDT 2022


Can you please update the status doc at
https://libc.llvm.org/date_and_time.html ?

On Sun, Oct 23, 2022, 12:55 Raman Tenneti via Phabricator <
reviews at reviews.llvm.org> wrote:

> rtenneti created this revision.
> rtenneti added reviewers: jeffbailey, sivachandra.
> Herald added subscribers: libc-commits, ecnelises, tschuett.
> Herald added projects: libc-project, All.
> rtenneti requested review of this revision.
>
> 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 at google.com>
>
>
> Repository:
>   rG LLVM Github Monorepo
>
> https://reviews.llvm.org/D136562
>
> Files:
>   libc/config/linux/aarch64/entrypoints.txt
>   libc/config/linux/x86_64/entrypoints.txt
>   libc/src/time/CMakeLists.txt
>   libc/src/time/difftime.cpp
>   libc/src/time/difftime.h
>   libc/test/src/time/CMakeLists.txt
>   libc/test/src/time/difftime_test.cpp
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20221023/32047298/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4007 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20221023/32047298/attachment-0001.bin>


More information about the libc-commits mailing list