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

Raman Tenneti via Phabricator via libc-commits libc-commits at lists.llvm.org
Sun Oct 23 12:55:31 PDT 2022


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 --------------
A non-text attachment was scrubbed...
Name: D136562.470003.patch
Type: text/x-patch
Size: 4974 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20221023/31f92263/attachment.bin>


More information about the libc-commits mailing list