add time measurement