From da6b1bc9e26df88e1c7b841f72307dd4997e09a5 Mon Sep 17 00:00:00 2001 From: Lin Huang Date: Tue, 7 Nov 2017 15:38:24 +0800 Subject: include/timer.h: add NSECS_PER_SEC macro Change-Id: I4367f84be5a4bd635b422b6e7cbdc9aa3ccfbf5c Signed-off-by: Lin Huang Reviewed-on: https://review.coreboot.org/22466 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Paul Menzel Reviewed-by: Julius Werner --- src/include/timer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/include/timer.h b/src/include/timer.h index 65ce9b4b79..49eae5ec40 100644 --- a/src/include/timer.h +++ b/src/include/timer.h @@ -15,6 +15,7 @@ #ifndef TIMER_H #define TIMER_H +#define NSECS_PER_SEC 1000000000 #define USECS_PER_SEC 1000000 #define MSECS_PER_SEC 1000 #define USECS_PER_MSEC (USECS_PER_SEC / MSECS_PER_SEC) -- cgit v1.2.3