summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-02-17 14:13:18 +0100
committerBert <ber.t@gmx.com>2011-02-17 14:13:18 +0100
commitb828b554191c761776e4757d1b92156c624c75f6 (patch)
tree1fc4bc692d7dac926a6ce8ee1760383b84ab1510 /util.h
parente2889ab891ba91ec71f8e2088fcb2c0123069054 (diff)
downloadnsxiv-b828b554191c761776e4757d1b92156c624c75f6.tar.zst
Immediately respond to events while loading thumbs
Diffstat (limited to 'util.h')
-rw-r--r--util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/util.h b/util.h
index 2caf347..f1db6b8 100644
--- a/util.h
+++ b/util.h
@@ -27,6 +27,9 @@
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#define LEN(a) (sizeof(a) / sizeof(a[0]))
+#define TV_TO_DOUBLE(x) ((double) ((x).tv_sec) + 0.000001 * \
+ (double) ((x).tv_usec))
+
void* s_malloc(size_t);
void* s_realloc(void*, size_t);