summaryrefslogtreecommitdiff
path: root/libc/src/time/difftime.cpp
AgeCommit message (Collapse)Author
2024-07-12[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98597)Petr Hosek
This is a part of #97655.
2024-07-12Revert "[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace ↵Mehdi Amini
declaration" (#98593) Reverts llvm/llvm-project#98075 bots are broken
2024-07-11[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98075)Petr Hosek
This is a part of #97655.
2023-09-26[libc] Mass replace enclosing namespace (#67032)Guillaume Chatelet
This is step 4 of https://discourse.llvm.org/t/rfc-customizable-namespace-to-allow-testing-the-libc-when-the-system-libc-is-also-llvms-libc/73079
2023-08-09[libc] Fix final conversion warningsMichael Jones
This patch fixes the floating point conversion warnings found with `-Wconversion` and `-Wno-sign-conversion`. These were the last warnings I found, meaning that once this lands https://reviews.llvm.org/D156630 should be unblocked. Reviewed By: mcgrathr, lntue Differential Revision: https://reviews.llvm.org/D157449
2022-10-24[libc] Add implementation of difftime function.Raman Tenneti
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