Hi is there any tool to find out the execution time of a method?
Because my application (asp.net web application) is running very slowly and I want to find out the method which is taking more time to respond or execute.
Thanks in advance jestges
Hi is there any tool to find out the execution time of a method?
Because my application (asp.net web application) is running very slowly and I want to find out the method which is taking more time to respond or execute.
Thanks in advance jestges
Just use the Stopwatch class
Stopwatch sw = Stopwatch.StartNew();
sw.Stop();
You need to use profiler which will show the execution time. Refer to Effective way of measuring method execution time for various option.