From 20cff0757b9daf8a480350d80c53dba7a52c5911 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Fri, 18 Jul 2014 22:23:17 -0400 Subject: add benchmark (issue #12) --- bench/util.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 bench/util.h (limited to 'bench/util.h') diff --git a/bench/util.h b/bench/util.h new file mode 100644 index 0000000..b178d3b --- /dev/null +++ b/bench/util.h @@ -0,0 +1,22 @@ +#ifndef UTIL_H +#define UTIL_H 1 + +#include +#include +#include + +#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 */ -- cgit v1.2.3