Add time measurement