Measure time spent waiting for a callback