arun_roy
arun_roy

Reputation: 601

Can I set a timer to a .vbs file?

I have a 6 .vbs files. and I incorporated them into a file said as Main.vbs. Say

   Main.vbs

   Option Explicit

   A.vbs
   B.vbs
   C.vbs

So May I get timer count which will display the total time spent in the main.vbs execution?

A pop-up window will come to the user with only "OK" button, would display the time in mm:ss format.

Thanks,

Upvotes: 0

Views: 668

Answers (1)

GENiEBEN
GENiEBEN

Reputation: 186

StartTime = Timer
        //INSERT YOUR CODE HERE
Elapsed = Timer - StartTime
WScript.Echo Elapsed

Upvotes: 1

Related Questions