]> git.proxmox.com Git - rustc.git/blame - src/jemalloc/test/include/test/timer.h
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / jemalloc / test / include / test / timer.h
CommitLineData
54a0048b 1/* Simple timer, for use in benchmark reporting. */
1a4d82fc
JJ
2
3typedef struct {
54a0048b
SL
4 nstime_t t0;
5 nstime_t t1;
1a4d82fc
JJ
6} timedelta_t;
7
8void timer_start(timedelta_t *timer);
9void timer_stop(timedelta_t *timer);
10uint64_t timer_usec(const timedelta_t *timer);
11void timer_ratio(timedelta_t *a, timedelta_t *b, char *buf, size_t buflen);