tstamp !
This commit is contained in:
+7
-1
@@ -4,7 +4,13 @@
|
||||
#include<signal.h>
|
||||
#include<stdint.h>
|
||||
#include<assert.h>
|
||||
#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,
|
||||
|
||||
Reference in New Issue
Block a user