From fbe226b2a8212d80c49e4ac54a05ecd60b37d722 Mon Sep 17 00:00:00 2001 From: pacien Date: Sat, 2 Dec 2017 01:14:50 +0100 Subject: Redefine time constants Signed-off-by: pacien --- include/common/time.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'include/common') diff --git a/include/common/time.h b/include/common/time.h index 060b7be..54a7bb2 100644 --- a/include/common/time.h +++ b/include/common/time.h @@ -6,18 +6,18 @@ */ /** - * Type: TimeVector - * An abstract time vector. + * Constants: Time vectors + * + * TIME_ORIGIN - the origin of times + * TIME_UNIT - a unit time vector */ -typedef float TimeVector; +#define TIME_ORIGIN ((TimeVector) 0) +#define TIME_UNIT ((TimeVector) 1) /** - * Constants: Time vectors - * - * TIME_ORIGIN - the origin of times - * TIME_UNIT - a unit time vector + * Type: TimeVector + * An abstract time vector. */ -const TimeVector TIME_ORIGIN = 0; -const TimeVector TIME_UNIT = 1; +typedef float TimeVector; #endif -- cgit v1.2.3