summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/time/difftime.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/time/difftime.c')
-rw-r--r--libc-top-half/musl/src/time/difftime.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/time/difftime.c b/libc-top-half/musl/src/time/difftime.c
new file mode 100644
index 0000000..80a18cc
--- /dev/null
+++ b/libc-top-half/musl/src/time/difftime.c
@@ -0,0 +1,6 @@
+#include <time.h>
+
+double difftime(time_t t1, time_t t0)
+{
+ return t1-t0;
+}