view dep/utf8proc/bench/util.h @ 343:1faa72660932

*: transfer back to cmake from autotools autotools just made lots of things more complicated than they should have and many things broke (i.e. translations)
author Paper <paper@paper.us.eu.org>
date Thu, 20 Jun 2024 05:56:06 -0400
parents
children
line wrap: on
line source

#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 */