✨ A1
This commit is contained in:
12
A1/timing.h
Normal file
12
A1/timing.h
Normal 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
|
||||
Reference in New Issue
Block a user