include/timer.h: add NSECS_PER_SEC macro
Change-Id: I4367f84be5a4bd635b422b6e7cbdc9aa3ccfbf5c Signed-off-by: Lin Huang <hl@rock-chips.com> Reviewed-on: https://review.coreboot.org/22466 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
parent
241391841e
commit
da6b1bc9e2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue