summaryrefslogtreecommitdiff
path: root/lib/timer.h
diff options
context:
space:
mode:
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)