Most modern GPS devices such as wearables or cycling head units support marking laps. Strava also supports displaying these laps. This feature is used by many athletes to mark and help analyze different sections of their ride.
Adding the ability to create segments from laps would be an easier alternative to the current, quite fiddly, method.