summaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/time_support.c4
-rw-r--r--src/helper/time_support.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/helper/time_support.c b/src/helper/time_support.c
index b8ad45cb..6968ab7d 100644
--- a/src/helper/time_support.c
+++ b/src/helper/time_support.c
@@ -89,11 +89,9 @@ int timeval_add_time(struct timeval *result, int sec, int usec)
return 0;
}
-int duration_start_measure(duration_t *duration)
+void duration_start_measure(duration_t *duration)
{
gettimeofday(&duration->start, NULL);
-
- return ERROR_OK;
}
int duration_stop_measure(duration_t *duration, char **text)
diff --git a/src/helper/time_support.h b/src/helper/time_support.h
index 8594eb22..c7b8b404 100644
--- a/src/helper/time_support.h
+++ b/src/helper/time_support.h
@@ -49,7 +49,7 @@ typedef struct duration_s
struct timeval duration;
} duration_t;
-extern int duration_start_measure(duration_t *duration);
+extern void duration_start_measure(duration_t *duration);
extern int duration_stop_measure(duration_t *duration, char **text);
#endif /* TIME_SUPPORT_H */