summaryrefslogtreecommitdiffstats
path: root/test/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/timer.h')
-rw-r--r--test/timer.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/test/timer.h b/test/timer.h
index 272f69d..3367367 100644
--- a/test/timer.h
+++ b/test/timer.h
@@ -3,15 +3,12 @@
#include <sys/time.h>
-typedef struct {
- struct timeval start;
- long seconds;
- long useconds;
-} Timer;
+typedef struct _Timer Timer;
-Timer * timer_new (void);
-void timer_destroy (Timer *t);
-void timer_start (Timer *t);
-void timer_stop (Timer *t);
+Timer * timer_new (void);
+void timer_destroy (Timer *t);
+void timer_start (Timer *t);
+void timer_stop (Timer *t);
+double timer_get_seconds (Timer *t);
#endif