VBScript : Find script execution time

Using the script below you can find how much time it took to execute your VBScript code.

Dim startTime
startTime = Now

'execute your code here

endTime = Now
MsgBox("Time taken to execute code : " & DateDiff("s",startTime,endTime)&" seconds")

You can try this example

Dim startTime
startTime = Now

'execute your code here
MsgBox("Wait for sometime")

endTime = Now
MsgBox("Time taken to execute code : " & DateDiff("s",startTime,endTime)&" seconds")

Check PHP version here

This entry was posted in VBScript and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>