summaryrefslogtreecommitdiff
path: root/src/helper/time_support.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper/time_support.h')
-rw-r--r--src/helper/time_support.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/helper/time_support.h b/src/helper/time_support.h
index d8b7fe5c..4e79d0d0 100644
--- a/src/helper/time_support.h
+++ b/src/helper/time_support.h
@@ -27,4 +27,13 @@ extern int timeval_subtract(struct timeval *result, struct timeval *x, struct ti
extern int timeval_add(struct timeval *result, struct timeval *x, struct timeval *y);
extern int timeval_add_time(struct timeval *result, int sec, int usec);
+typedef struct duration_s
+{
+ struct timeval start;
+ struct timeval duration;
+} duration_t;
+
+extern int duration_start_measure(duration_t *duration);
+extern int duration_stop_measure(duration_t *duration, char **text);
+
#endif /* TIME_SUPPORT_H */