From c0615ad7262ee8af51a15b2085e69e017be304f3 Mon Sep 17 00:00:00 2001 From: Christian Friedrich Coors Date: Wed, 11 Mar 2020 12:40:12 +0100 Subject: [PATCH] sys/timex: Add NS_PER_SEC definition --- sys/include/timex.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/include/timex.h b/sys/include/timex.h index f022ad362a..2c4506cce3 100644 --- a/sys/include/timex.h +++ b/sys/include/timex.h @@ -63,6 +63,11 @@ extern "C" { */ #define NS_PER_US (1000U) +/** + * @brief The number of nanoseconds per second + */ +#define NS_PER_SEC (1000000000U) + /** * @brief The maximum length of the string representation of a timex timestamp */