What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 57905 |  Welcome, Guest!   Register  Login
 Home > Code Snippets > VB.NET > Calculate Processing Time for an acitivity ...
Naimishforu

Calculate Processing Time for an acitivity

 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/
Found interesting? Add this to:


 Responses

Tripati_tutu
Posted by: Tripati_tutu | Posted on: 2/26/2011 | Level: Bronze | Status: [Member] | Points: 10 | Alert Moderator 

Nice one.

>> Write Response - Respond to this post and get points

More codes snippets

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/21/2013 10:57:25 AM