Changed for uint to double to display very short durations in nanoseconds.