shithub: npe

Download patch

ref: dd1055daf99d53d1d16ed1ae37a7dd24e68f1f93
parent: a3cd60bca8a6d5e808df4adec51d52c3fce64a18
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sat Mar 20 17:50:23 EDT 2021

forgot to push gettimeofday

--- /dev/null
+++ b/libnpe/gettimeofday.c
@@ -1,0 +1,15 @@
+#include <time.h>
+#include "_npe.h"
+
+int
+gettimeofday(struct timeval *tp, struct timezone *tzp)
+{
+	long long t;
+
+	USED(tzp);
+	t = npe_nanosec();
+	tp->tv_sec = t / 1000000000ULL;
+	tp->tv_usec = (t / 1000ULL)%1000000ULL;
+
+	return 0;
+}