rtclock: make use of constants when converting between nsec and usec