ref: c71c69b54752eda283fbd6df0e1dd8fdc486495c
parent: 53b4dd2f45fc0a8a10401984afe1a1c909eb86f8
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Sat Oct 14 20:18:17 EDT 2023
dtime: plot twist - nanosec() already starts from 0
--- a/qk1.c
+++ b/qk1.c
@@ -50,11 +50,7 @@
double
dtime(void)
{
- static double t0;
-
- if(t0 == 0.0)
- t0 = time(nil);
- return nanosec() / 1000000000.0 - t0;
+ return nanosec() / 1000000000.0;
}
void