public static double ToNsec(TimeMsg time) { return(time.GetSecs() * (double)1e9 + time.GetNsecs()); }
public static double ToSec(TimeMsg time) { return((double)time.GetSecs() + (double)time.GetNsecs() / 1e9); }