Click here to Skip to main content
15,891,785 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
hi,

i have now finished my program (web server) and i want to know the duration of execution of the request recieved from client,,,

duration = time of sent(response) - time of received (request)

thank you so much friends
Posted
Comments
J a a n s 10-Jun-11 12:02pm    
You can check the IIS log for these details, if you are using IIS.

Have a look at the StopWatch class in System.Diagnostics

e.g.

http://www.dijksterhuis.org/timing-function-performance-stopwatch-class/[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 10-Jun-11 19:53pm    
Anywhere. My 5.
--SA
If you are using Firefox, you can use FireBug[^] to accomplish this task. IE has also something similar to this.
 
Share this answer
 
try this idea:

DateTime x= new DateTime.Now();


put this in each of request & response
then for example:

Label1.Text = x.ToString();


if you find this help full plz vote up :)
 
Share this answer
 
v2
Comments
guendouz bachir 10-Jun-11 18:08pm    
thank you friends, i will look at this solutions

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900