ITeye博客

计时器Stopwatch

devilhand · 2011-05-05 09:23 · C# · 编程语言 · Markdown

Stopwatch times = new Stopwatch();//设置一个计时器

times.Start();//计时器启动

times.Stop();//关闭计时器

MessageBox.Show(times.Elapsed.ToString());//打印所用时间

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。