Measure time interval in video