Stopwatch 计算程序执行时间

Stopwatch sw1 = new Stopwatch();
sw1.Start();
ViewBag.Memberinfo1 = VipMx.Memberinfo1(Id, "42");
sw1.Stop();
long usetime = sw1.ElapsedMilliseconds;

posted @ 2014-08-11 18:24  xjt360  阅读(157)  评论(0编辑  收藏  举报