[all-commits] [llvm/llvm-project] 122044: [libc] Add implementation of difftime function.
rtenneti-google via All-commits
all-commits at lists.llvm.org
Mon Oct 24 15:14:39 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 12204429f2f9e1ab47e3fcb7a2ec4a262c800818
https://github.com/llvm/llvm-project/commit/12204429f2f9e1ab47e3fcb7a2ec4a262c800818
Author: Raman Tenneti <rtenneti at google.com>
Date: 2022-10-24 (Mon, 24 Oct 2022)
Changed paths:
M libc/config/linux/aarch64/entrypoints.txt
M libc/config/linux/x86_64/entrypoints.txt
M libc/docs/date_and_time.rst
M libc/src/time/CMakeLists.txt
A libc/src/time/difftime.cpp
A libc/src/time/difftime.h
M libc/test/src/time/CMakeLists.txt
A libc/test/src/time/difftime_test.cpp
Log Message:
-----------
[libc] Add implementation of difftime function.
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>
Reviewed By: jeffbailey
Differential Revision: https://reviews.llvm.org/D136631
More information about the All-commits
mailing list