Use criterion for more precise measurement.
Rip timing functions from criterion.