Measure operation costs in nanoseconds.