Skip to content
Commit 12204429 authored by Raman Tenneti's avatar Raman Tenneti
Browse files

[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: default avatarJeff Bailey <jeffbailey@google.com>

Reviewed By: jeffbailey

Differential Revision: https://reviews.llvm.org/D136631
parent 996267d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment