adapted time measurement