nanosecond: fix up conversion of ticks to nsec by doing the conversion in 2 stages