Measure time per action.