Skip to main content

cycle_time

Function cycle_time 

Source
pub fn cycle_time(
    coding: f64,
    pickup: f64,
    review: f64,
    test: f64,
    deploy: f64,
) -> f64
Expand description

Cycle time: the sum of a change’s five named engineering stages.

§Arguments

  • coding — first commit to pull request opened.
  • pickup — pull request opened to first review.
  • review — first review to approval.
  • test — time spent in automated/manual verification.
  • deploy — approval to production.

§Returns

The total cycle time, in whatever unit the stage durations are expressed.

§Examples

use software_engineering::cycle_time::cycle_time;

let total = cycle_time(2.0, 0.5, 1.5, 0.5, 0.5);
assert_eq!(total, 5.0);