perf time-utils: Add utility function to print time stamps in nanoseconds