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