Signed-off-by: Andreas Metzler <ametzler@bebt.de>
#endif
static void
-value2human(unsigned long bytes, double time, double *data, double *speed,
+value2human(uint64_t bytes, double time, double *data, double *speed,
char *metric)
{
if (bytes > 1000 && bytes < 1000 * 1000) {
#include <windows.h>
#endif
+/* for uint64_t */
+# include <stdint.h>
+
#if defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_PROCESS_CPUTIME_ID)
#undef gettime
#define gettime(x) clock_gettime(CLOCK_PROCESS_CPUTIME_ID, x)
struct benchmark_st {
struct timespec start;
- unsigned long size;
+ uint64_t size;
sighandler_t old_handler;
#if defined(_WIN32)
HANDLE wtimer;