Capture Elapsed time while query runs

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can anyone give any pointers how to capture the Elapsed time while a set of
query run? My background is more sql driven and I could write this into to a
table,but Ideally I'd like to just display it in a message box.
Thanks,
 
Depending on how precise a count you want, it can be as easy as setting a
variable to the value of Now before you start, then setting another variable
to the value of Now when you stop. Use DateDiff to figure out the elapsed
time between them.
 
Back
Top