From 783f85f3df791a3f948acd9554094d7b352a8d9b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 12 Oct 2015 11:49:50 +0100 Subject: Handle stats command. --- src/libutil/util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libutil/util.h') diff --git a/src/libutil/util.h b/src/libutil/util.h index bf55f901f..f39730b0f 100644 --- a/src/libutil/util.h +++ b/src/libutil/util.h @@ -193,6 +193,7 @@ void g_queue_clear (GQueue *queue); ((dbl) - (int)(dbl)) * 1000 * 1000; \ } while (0) #define tv_to_msec(tv) ((tv)->tv_sec * 1000LLU + (tv)->tv_usec / 1000LLU) +#define tv_to_double(tv) ((tv)->tv_sec + (tv)->tv_usec / 1e6f) #define ts_to_usec(ts) ((ts)->tv_sec * 1000000LLU + \ (ts)->tv_nsec / 1000LLU) -- cgit v1.2.3