pub fn format_request_time(duration: Option<Duration>) -> String
Formats a request time, showing milliseconds or seconds as appropriate.