In Clash of Code, the time used for the final score is picked when the user hits the Submit button. I think it would be more fair if time was taken from the last time the code was edited. Or if it’s not feasible to compute a non-cheating time from the client side, pick the last time a user hits the Test All Cases button (implied, pick the time from the server side), granted the code did not change between the tests and the submission.
Why this? Running tests in a clash with lots of tests is unfair for people with a high latency. What’s more, people often submit their code blindly (i.e. without running all the tests) because the tests are taking too long, and saving those 20 secs or so for testing can make a huge difference in a clash solved in less than 30 secs, which happens quite often.
One could argue it’s part of the game to hit blindly the Submit button, but I fail to see a compelling result out of this. Technical issues should not be in the way of players, especially issues that change from player to player, such as latency, which are unfair per se.