Nowadays it is only possible to repeat a sequence of activities by N times ... it should be possible to do that repeating during a specific distance ... for example:
1 - 10 min warmup
2 - repeat during 5 km
2.a - 3 minutes fast pace
2.b - 1 minute rest
3 - 10 min cool down