From 98ccef732fe5bdb2f52e4ebda75b69a73a5f7bdb Mon Sep 17 00:00:00 2001 From: Maxim Poliakovski Date: Thu, 20 Oct 2022 13:02:48 +0200 Subject: [PATCH] TimerManager: more microseconds related constants. --- core/timermanager.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/timermanager.h b/core/timermanager.h index e1b0dd2..b717bbd 100644 --- a/core/timermanager.h +++ b/core/timermanager.h @@ -34,9 +34,11 @@ using namespace std; #define MIN_TIMEOUT_NS 200 #define NS_PER_SEC 1E9 +#define USEC_PER_SEC 1E6 +#define NS_PER_USEC 1000UL #define ONE_BILLION_NS 0x3B9ACA00UL -#define USECS_TO_NSECS(us) (us) * 1000 +#define USECS_TO_NSECS(us) (us) * NS_PER_USEC typedef function timer_cb;