Converting 5 ms (milliseconds) to nanoseconds result to 5*10^6 ns (nanoseconds) or 0.005 seconds.
An order of magnitude is the magnitude, or scale, of a class of numbers such that the numbers in that class have a fixed ratio to the class preceding it.
In the most common usage of the term "order of magnitude," the fixed ratio is 10 and the scale is the base-10 exponent that is applied to 10. Therefore, to be an order of magnitude greater means to be 10 times as large. Nanosecond