Skip to main content

drain

Function drain 

Source
pub fn drain() -> Vec<(String, Duration)>
Expand description

What: Take every figure kept and forget them, in the order of the step names. Why: One record takes the figures of the command it describes; the next command starts from nothing.

In TS you’d write (pseudocode):

const figures = drain();