【发布时间】:2010-10-22 04:13:51
【问题描述】:
例如
foo() //Some operation bound by an external resource. db,I/O, whatever.
对比
var watch = new Stopwatch();
watch.Start();
foo()
var time = watch.ElapsedMilliseconds
watch.Stop();
【问题讨论】:
标签: c# .net performance stopwatch