You could use array, hashmap or other objects instead of a simple var to manage your time.
However you will still have the issue, that the event variables (newThingStatus, triggeringThing, etc) will also get overwritten.
Maybe have a look here, if your want to use this blockly script, where the issue is already solved: