Reputation: 3740
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
Upvotes: 1
Views: 1701
Reputation: 5614
You need to use profiler which will show the execution time. Refer to Effective way of measuring method execution time for various option.
Upvotes: 1
Reputation: 39248
Just use the Stopwatch class
Stopwatch sw = Stopwatch.StartNew();
sw.Stop();
Upvotes: 2