Hi,
I had similar questions when I tried using the Blynk linux-library on the Pi.
After alot of research and after reading vhymanskyy’s post here, I dediced to use the node.js version of Blynk. Using the provided examples on GitHub it may be an easier start.
There you can just use setTimeout() and setInterval() - Methods and have many additional libraries.