jestges
jestges

Reputation: 3740

track the execution time of a method in asp.net

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

Answers (2)

Sachin Chavan
Sachin Chavan

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

TGH
TGH

Reputation: 39248

Just use the Stopwatch class

Stopwatch sw = Stopwatch.StartNew();
sw.Stop();

Upvotes: 2

Related Questions