diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-05 18:16:28 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-05 18:16:28 +0000 |
commit | f2d8ad8d000772fff31a5062513550dce48db149 (patch) | |
tree | 14702072fcc9c66839696e74a165cf6e99cb9ddb /src/libutil/util.h | |
parent | 988cb2cc8399b16042f06108954af9abf4cf46a5 (diff) | |
download | rspamd-f2d8ad8d000772fff31a5062513550dce48db149.tar.gz rspamd-f2d8ad8d000772fff31a5062513550dce48db149.zip |
Add portable get_ticks function.
Diffstat (limited to 'src/libutil/util.h')
-rw-r--r-- | src/libutil/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libutil/util.h b/src/libutil/util.h index 9e90b1089..8e3fe090f 100644 --- a/src/libutil/util.h +++ b/src/libutil/util.h @@ -435,4 +435,10 @@ gchar * rspamd_encode_base32 (const guchar *in, gsize inlen); */ guchar* rspamd_decode_base32 (const gchar *in, gsize inlen, gsize *outlen); +/** + * Portably return the current clock ticks as seconds + * @return + */ +gdouble rspamd_get_ticks (void); + #endif |