A good example of the required timer for Photon’s (SparkCorePolledTimer replacing SimpleTimer for Arduino /ESP’s) can be seen in the Photon Garage Door Controller.
Wouldn’t recommend anyone uses their own timers with Blynk when ready made libraries already exist.