MCPcopy Create free account
hub / github.com/bajrangCoder/setu / format_duration

Method format_duration

src/components/audio_player.rs:321–326  ·  view source on GitHub ↗
(d: Duration)

Source from the content-addressed store, hash-verified

319 let minutes = total_secs / 60;
320 let seconds = total_secs % 60;
321 format!("{:02}:{:02}", minutes, seconds)
322 }
323
324 fn progress_fraction(&self) -> f32 {
325 if let Some(total) = self.total_duration {
326 if total.as_millis() == 0 {
327 return 0.0;
328 }
329

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected