measure average time per request