diff options
Diffstat (limited to 'test/timer.h')
-rw-r--r-- | test/timer.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/timer.h b/test/timer.h new file mode 100644 index 0000000..272f69d --- /dev/null +++ b/test/timer.h @@ -0,0 +1,17 @@ +#ifndef TIMER_H +#define TIMER_H + +#include <sys/time.h> + +typedef struct { + struct timeval start; + long seconds; + long useconds; +} Timer; + +Timer * timer_new (void); +void timer_destroy (Timer *t); +void timer_start (Timer *t); +void timer_stop (Timer *t); + +#endif |