summaryrefslogtreecommitdiff
path: root/lib/timer.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-02-01 14:53:38 +0100
committerMaria Matejka <mq@ucw.cz>2022-02-03 10:30:33 +0100
commitc019008383a439b5e5cf46dc71f902f335a0a9df (patch)
tree49c55163ab4f45dd731e7066231004e880e901ef /lib/timer.h
parentaca4c3fc8e4a6043cafcb8778055d9a505283376 (diff)
IO loop duration fixup
Diffstat (limited to 'lib/timer.h')
-rw-r--r--lib/timer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/timer.h b/lib/timer.h
index 04544ace..161e39d3 100644
--- a/lib/timer.h
+++ b/lib/timer.h
@@ -55,6 +55,7 @@ static inline timer *timers_first(struct timeloop *loop)
#define current_time() atomic_load_explicit(&last_time, memory_order_acquire)
#define current_real_time() atomic_load_explicit(&real_time, memory_order_acquire)
+#define current_time_update() ({ times_update(); current_time(); })
//#define now (current_time() TO_S)
//#define now_real (current_real_time() TO_S)