1:
[DllImport("Kernel32.dll")]
 public static extern UInt32 GetTickCount();

private void int GetVal()
{
UInt32 Start = GetTickCount();               
{
                //doing.......
}
UInt32 End = GetTickCount();
return  (End - Start);
}

2:

 

 DateTime Start = DateTime.Now;

        //doing......
}
return DateTime.Now.Subtract(dt).Milliseconds.ToString();

 

相关文章:

  • 2022-12-23
  • 2022-02-24
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
猜你喜欢
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2021-05-20
  • 2022-12-23
相关资源
相似解决方案