laptop added time measure in optical flow function