-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmisc.h
More file actions
22 lines (16 loc) · 722 Bytes
/
misc.h
File metadata and controls
22 lines (16 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef __ZLIB_BENCH_MISC_H
#define __ZLIB_BENCH_MISC_H
#include <stdlib.h>
#include <sys/time.h>
#include <inttypes.h>
int timevalSubtract(struct timeval *result, const struct timeval *x,
const struct timeval *ya);
void timevalAdd(struct timeval *result, const struct timeval *x,
const struct timeval *y);
void timevalAddAdd(struct timeval *result, const struct timeval *x);
int timevalBefore(const struct timeval *x, const struct timeval *y);
int timevalBeforeTimeout(const struct timeval *timeout,
const struct timeval *x, const struct timeval *y);
unsigned long timevalToUsec(const struct timeval *x);
uintmax_t parseHumanSize (const char* s);
#endif