Adding time measurement