The stroke of an engine is the