This will not work as the timer tick events will not fire while other code is running (unless you add the DoEvents keyword).
Just checking the value of Now will also not be enough because it is updated each second on the device.
The solution is to use GetTickCount from this library: http://www.b4x.com/forum/showthread.php?t=384
Calculate its value in the beginning and end of each sub.