While this is an interesting hack it seems like a very strange approach to the problem at hand.
If you don't care how often your function runs then why not just rely on the system clock and maintain a "lastrun"-variable?
If you don't care how often your function runs then why not just rely on the system clock and maintain a "lastrun"-variable?