Test the hotkeys, triggering the different options in the main menu and in a running game, ceasefire, add warn() to show how often the functions are really are called, and to see that there are really only as many counters iterated as are enabled.
Notice that with the 250ms delay the performance consideration should have become irrelevant.
I did the following measurement for the time spent in `onTick` before and after.
If there are only two counters, the new code is slightly slower. If there are more, the new code is slightly faster. Per call that is, i.e. still irrelevant.
{F1125812,width=1024}
{F1125813}
In the graphics and table we see the average timeconsumption is about 450 microseconds on my machine with the previous code and about 420microseconds with the new code.
That it is very consistent for the new code, but the previosu code had many bumps at 100 microseconds. If those are ignored, I get the 30ms faster performance, I didn't further check whether that is a valid comparison, because the performance doesn't matter with this 250ms delay anyhow.
'Test that it works.'
Notice that the ceasefire event subscription is necessary for diplomacy colors, because the diplomacy-changed GUI message is only sent from Commands.js, when a player sent a command, not when the components decided for themselves to change the diplomacies.