pub fn exit(idx: usize, duration: Duration, ok: bool, error: Option<String>)
Close the entry at idx with its measured duration and outcome. Called by code generated from #[jig].
idx
#[jig]