Skip to main content

calc_progress

Function calc_progress 

Source
pub fn calc_progress(position: f64, duration: f64) -> f64
Expand description

Calculate progress percentage from position and duration

§Arguments

  • position - Current position in seconds
  • duration - Total duration in seconds

§Returns

Progress as percentage (0.0 to 100.0)