|
-
Aug 18th, 2006, 03:36 AM
#1
Thread Starter
Member
Time taken for file execution
Hi all,
When I used the following code to get the time taken for the batch file to execute, it returned 0 milliseconds. I tried using TimeGetTime also, bt even taht returned different answers, sometime 0 ms. Can anyone tell me whats wrong with the foll. code?
Private sub Build_Click()
ChDrive App.Path
ChDir App.Path
Dim retval As Long
retval = GetTickCount()
DoEvents
Call Shell("BuildALL.bat", vbNormalFocus)
MsgBox (GetTickCount - retval) & " miliseconds elapsed"
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|