return res;
}
+gdouble
+rspamd_get_calendar_ticks (void)
+{
+ gdouble res;
+ struct timeval tv;
+
+ if (gettimeofday (&tv, NULL) == 0) {
+ res = (gdouble)tv.tv_sec + tv.tv_usec / 1e6f;
+ }
+ else {
+ res = time (NULL);
+ }
+
+ return res;
+}
+
/* Required for tweetnacl */
void
randombytes (guchar *buf, guint64 len)
*/
gdouble rspamd_get_virtual_ticks (void);
+
+/**
+ * Return the real timestamp as unixtime
+ */
+gdouble rspamd_get_calendar_ticks (void);
+
/**
* Special utility to help array freeing in rspamd_mempool
* @param p