diff --git a/tp/tp5/src/pi.c b/tp/tp5/src/pi.c index 08856a5..00b463a 100644 --- a/tp/tp5/src/pi.c +++ b/tp/tp5/src/pi.c @@ -4,7 +4,13 @@ #include #include #include -#include "helpers.h" + +double tstamp(void) { + struct timespec tv; + clock_gettime(CLOCK_REALTIME, &tv); + return tv.tv_sec + tv.tv_nsec * 1.0e-9; +} + uint64_t shots = 0,