Calculate the execution time of a method

后端 未结 7 790
小蘑菇
小蘑菇 2020-11-22 13:26

Possible Duplicate:
How do I measure how long a function is running?

I have an I/O time-taking method which c

7条回答
  •  北海茫月
    2020-11-22 14:27

    If you are interested in understand performance, the best answer is to use a profiler.

    Otherwise, System.Diagnostics.StopWatch provides a high resolution timer.

提交回复
热议问题