From 4e09ff8585f26fd0a6fa91a0c712a7d2e2f0ca3d Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Wed, 12 Sep 2012 17:22:27 +0200 Subject: [PATCH] Introduce a helper function to convert from tmv to nanoseconds. Signed-off-by: Richard Cochran --- tmv.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tmv.h b/tmv.h index e850a63..16a0772 100644 --- a/tmv.h +++ b/tmv.h @@ -81,6 +81,11 @@ static inline double tmv_dbl(tmv_t x) return (double) x; } +static inline int64_t tmv_to_nanoseconds(tmv_t x) +{ + return x; +} + static inline TimeInterval tmv_to_TimeInterval(tmv_t x) { return x << 16;