summaryrefslogtreecommitdiffstats
path: root/src/libutil/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/util.h')
-rw-r--r--src/libutil/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/util.h b/src/libutil/util.h
index de723ecd3..bd2d069a1 100644
--- a/src/libutil/util.h
+++ b/src/libutil/util.h
@@ -244,6 +244,8 @@ gsize rspamd_strlcpy_tolower (gchar *dst, const gchar *src, gsize siz);
((dbl) - (int)(dbl)) * 1000 * 1000; \
} while (0)
#define tv_to_msec(tv) ((tv)->tv_sec * 1000LLU + (tv)->tv_usec / 1000LLU)
+#define ts_to_usec(ts) ((ts)->tv_sec * 1000000LLU + \
+ (ts)->tv_nsec / 1000LLU)
/* Compare two emails for building emails tree */
gint rspamd_emails_cmp (gconstpointer a, gconstpointer b);