summaryrefslogtreecommitdiff
path: root/bench/util.h
blob: b178d3bb10b8320a412d5a29bad7f65f7a24e97f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef UTIL_H
#define UTIL_H 1

#include <inttypes.h>
#include <sys/time.h>
#include <time.h>

#ifdef __cplusplus
extern "C" {
#endif

uint8_t *readfile(const char *filename, size_t *len);

typedef struct timeval mytime;
mytime gettime(void);
double elapsed(mytime t1, mytime t0);

#ifdef __cplusplus
}
#endif

#endif /* UTIL_H */