How to find the time taken for executing an application?
-
Hi how can we find the time take by the application to execute a code snippet when an event is fired,say,while clicking a button,how to find the time it takes for the application to process the request and give the output,programmatically? Thanx!
hi there: just give you my idea on this: - get the current time = t1 - ...your code here... - get the new current time = t2 => t2-t1 = time taken by app to execute the code snippet << >>
-
hi there: just give you my idea on this: - get the current time = t1 - ...your code here... - get the new current time = t2 => t2-t1 = time taken by app to execute the code snippet << >>
-
Thanx! But i need help to implement it in code behind. My actual requirement is how to find out the number of seconds the application takes to execute an event... Can anyone help me ,please? Thanx!
Do you know how to get the system time?... << >>
-
Do you know how to get the system time?... << >>
-
Then get it before you start, get it when it's finished, take one from t'other et voila - how long it took :)
"Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox