Calculate Processing Time for an acitivity

Naimishforu
Posted by Naimishforu under VB.NET category on | Points: 40 | Views : 3238
Imports System.Diagnostics

Sub GetProcessTime()

Dim myWatchAs New Stopwatch

myWatch.Start()

Process_database()

myWatch.Stop()

MsgBox("Total Time Taken for Database Operation := " & myWatch.ElapsedMilliseconds.ToString)


End Sub

Comments or Responses

Posted by: Tripati_tutu on: 2/26/2011 Level:Bronze | Status: [Member] | Points: 10
Nice one.

Login to post response