View Single Post
  #4 (permalink)  
Old 02-27-2008, 06:57 AM
Erel's Avatar
Erel Erel is online now
Administrator
 
Join Date: Apr 2007
Posts: 15,495
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

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.basic4ppc.com/forum/additional-libraries/384-useful-library.html
Calculate its value in the beginning and end of each sub.
Reply With Quote