This commit is contained in:
Nikolaj
2021-09-27 12:36:29 +02:00
parent 4e879f3163
commit 7f22e73b91
11 changed files with 569 additions and 0 deletions

12
A1/timing.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef TIMING_H
#define TIMING_H
#include <sys/time.h>
static uint64_t microseconds() {
static struct timeval t;
gettimeofday(&t, NULL);
return ((uint64_t)t.tv_sec*1000000)+t.tv_usec;
}
#endif