xref: /dflybsd-src/test/sysperf/blib.h (revision d0128b6a1789e266a43d07d9baf8200378bd4596)
16b055cd4SMatthew Dillon /*
26b055cd4SMatthew Dillon  * BLIB.C
36b055cd4SMatthew Dillon  *
46b055cd4SMatthew Dillon  * Simple benchmarking library
56b055cd4SMatthew Dillon  *
68faadb75SMatthew Dillon  * $DragonFly: src/test/sysperf/blib.h,v 1.4 2006/04/22 22:32:52 dillon Exp $
76b055cd4SMatthew Dillon  */
86b055cd4SMatthew Dillon 
96b055cd4SMatthew Dillon #include <sys/types.h>
106b055cd4SMatthew Dillon #include <sys/time.h>
116b055cd4SMatthew Dillon #include <sys/mman.h>
126dd7c9c5SMatthew Dillon #include <sys/stat.h>
13*d0128b6aSMatthew Dillon #include <sys/wait.h>
146b055cd4SMatthew Dillon #include <stdio.h>
156b055cd4SMatthew Dillon #include <stdlib.h>
166b055cd4SMatthew Dillon #include <stdarg.h>
176b055cd4SMatthew Dillon #include <unistd.h>
186b055cd4SMatthew Dillon #include <string.h>
19*d0128b6aSMatthew Dillon #include <errno.h>
206b055cd4SMatthew Dillon 
216b055cd4SMatthew Dillon void start_timing(void);
226b055cd4SMatthew Dillon int stop_timing(long long count, const char *ctl, ...);
23b40d9440SMatthew Dillon int stop_timing2(long long count, long long us, const char *ctl, ...);
246b055cd4SMatthew Dillon long long get_timing(void);
258faadb75SMatthew Dillon void nop(void);
266b055cd4SMatthew Dillon 
27