string format_hr_time(int i)
Helper function that formats a time span in nanoseconds to something more human readable (ns, ms or s).