tests: Factor time measurement code out.
authorWerner Koch <wk@gnupg.org>
Sat, 7 Sep 2013 08:06:46 +0000 (10:06 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 16 Sep 2013 12:36:53 +0000 (14:36 +0200)
commit58eaf0c4332ac2f645ede28c4d18337389dfa753
treefbdbece4e5558d3b67514aa1641fc7d5a16a0eb9
parent1c76349c69c70a62b516a4f837c6287def640807
tests: Factor time measurement code out.

* tests/benchmark.c (started_at, stopped_at, start_timer, stop_timer)
(elapsed time): Factor out to ..
* tests/stopwatch.h: new file.
tests/benchmark.c
tests/stopwatch.h [new file with mode: 0644]