zoukankan      html  css  js  c++  java
  • C#代码计时

    using System.Diagnostics;
    
     
    
    Stopwatch sw = new Stopwatch();
    sw.Start(); 
    //todo code ....... 
    sw.Stop();
    Console.WriteLine("执行此段代码耗时:{0} ms", sw.ElapsedMilliseconds);
  • 相关阅读:
    11.29
    11.28
    11.24
    11.21
    11.17
    11.15
    11.14
    11.9
    11.5
    11.3
  • 原文地址:https://www.cnblogs.com/songtzu/p/3593462.html
Copyright © 2011-2022 走看看