pub fn format_duration(buf: &mut BytesMut, ms: u64)
Format the duration in human readable format, checking smaller units first. e.g., ms, s, m, h.