Introduce a helper function to convert from tmv to nanoseconds.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
f3b0ca69d3
commit
4e09ff8585
5
tmv.h
5
tmv.h
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue