Code Snippet posted by:
Naimishforu | Posted on: 2/24/2011 | Category:
VB.NET Codes | Views: 1748 | Status:
[Member] [MVP] |
Points: 40
|
Alert Moderator
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
Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/