
Cross-midnight time measurements
Any time the behavior of your code depends on the Timer function you should take into account the (more or less) remote possibility that your code is executed just before midnight. Take for example the following code: Sub Pause(seconds as Single) Dim initTime as Single initTime = Timer Do: Loop