Added time measurement