summaryrefslogtreecommitdiffstats
path: root/test/timer.h
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2013-07-04 16:58:14 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2013-07-04 16:58:14 +0200
commit8c04f3936822c13acdb6711ccd3159395a96ee0b (patch)
tree571f9e0b19a1034df0aa92517a623f3c8a870b00 /test/timer.h
parentb9ce6027dde8b3c6fd002d38e3cee07e7711d73c (diff)
downloadufodecode-8c04f3936822c13acdb6711ccd3159395a96ee0b.tar.gz
ufodecode-8c04f3936822c13acdb6711ccd3159395a96ee0b.tar.bz2
ufodecode-8c04f3936822c13acdb6711ccd3159395a96ee0b.tar.xz
ufodecode-8c04f3936822c13acdb6711ccd3159395a96ee0b.zip
Make Timer private and calculate elapsed seconds
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