The frameTime was only ever being set in exhaustive mode, otherwise it's nil and the start time never gets added to the times table. Fixed by getting rid of the conditional block and limiting the loop instead (also gets rid of some duplication)
Looks fine. I'm not wild about putting the conditional directly in the for loop parameter, but it's not like this code is anywhere near pretty, so if it works, it works.
The frameTime was only ever being set in exhaustive mode, otherwise it's nil and the start time never gets added to the times table. Fixed by getting rid of the conditional block and limiting the loop instead (also gets rid of some duplication)