Skip to main content

cost

Function cost 

Source
pub(crate) fn cost<T>(work: impl FnOnce() -> T) -> (T, Cost)
Expand description

Runs work once, and says what it cost.