On naming variables, functions and constants

lastTimeEventOccured

In that situation I would name the event. lastTimeButtonAPressed, or lastTimeObjectPassedSensor3.