Introduce a helper function to convert from tmv to nanoseconds.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2012-09-12 17:22:27 +02:00
parent f3b0ca69d3
commit 4e09ff8585
1 changed files with 5 additions and 0 deletions

5
tmv.h
View File

@ -81,6 +81,11 @@ static inline double tmv_dbl(tmv_t x)
return (double) 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) static inline TimeInterval tmv_to_TimeInterval(tmv_t x)
{ {
return x << 16; return x << 16;