Fix 1697753: compare times with times, not with frame counts