pub fn duration_to_str(duration: Duration) -> String
Converts duration to string representation suitable for logs.