repo.or.cz
/
cryptodev-linux.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
documented updates
[cryptodev-linux.git]
/
lib
/
benchmark.h
blob
173552ec497f16ccfd5ce5816f05a16ff103a403
1
#include <sys/time.h>
2
#include <time.h>
3
#include <sys/time.h>
4
#include <signal.h>
5
6
typedef
void
(*
sighandler_t
)(
int
);
7
8
struct
benchmark_st
9
{
10
struct
timeval start
;
11
sighandler_t old_handler
;
12
};
13
14
extern
int
benchmark_must_finish
;
15
16
int
start_benchmark
(
struct
benchmark_st
*
st
);
17
int
stop_benchmark
(
struct
benchmark_st
*
st
,
unsigned long
*
elapsed
);
18