What are `end-10k` and the related terms? Are they defined in `globals`? In a `turtles-own`? The code you've provided suggests that they are specific to the turtles, but then that makes the idea of iterating over the races in a loop seem less helpful.
And what do you want to happen with `result-race`? In your pseudocode, it is written once for the 10K races, and then immediately overwritten for the 5K races.
Are the races dynamic in some way? (That is: Do you not know for certain that there
will be a 10K and a 5K?) If you always have the same races, it seems to me like it would good to simply do:
```
to measure
set result-10k (end-10k - start-10k) set result-5k (end-5k - start-5k)
endask turtles [measure]```
Jason Bertsche