Measuring Elapsed Time

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
fightcancer
Macro Veteran
Posts: 260
Joined: Fri Apr 15, 2005 8:32 am

Measuring Elapsed Time

Post by fightcancer » Sun Nov 11, 2007 2:57 pm

Do we have a sample macro for measuring elapsed time? I want my macro to see if the last DB query is older than 3 min. before doing another query. Thanks!

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Sun Nov 11, 2007 4:03 pm

Use VBScript's Timer function. I'm sure there are examples on this forum as this has been asked before. Also an example in this doc:
http://www.mjtnet.com/loadtesting.pdf
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts