pub(crate) fn cost<T>(work: impl FnOnce() -> T) -> (T, Cost)
Runs work once, and says what it cost.
work