documented updates
[cryptodev-linux.git] / lib / benchmark.h
blob173552ec497f16ccfd5ce5816f05a16ff103a403
1 #include <sys/time.h>
2 #include <time.h>
3 #include <sys/time.h>
4 #include <signal.h>
6 typedef void (*sighandler_t)(int);
8 struct benchmark_st
10 struct timeval start;
11 sighandler_t old_handler;
14 extern int benchmark_must_finish;
16 int start_benchmark(struct benchmark_st * st);
17 int stop_benchmark(struct benchmark_st * st, unsigned long * elapsed);