execution time calculation

前端 未结 3 1415
死守一世寂寞
死守一世寂寞 2021-01-06 06:41

How to you calculate Execution time of your C#, Windows Application.

Are there any industry recognized methods?

3条回答
  •  一个人的身影
    2021-01-06 07:15

    Use the GetTickCount() API function when you enter Main() and again when you're about to exit it, and take the difference between them to get the number of milliseconds your program took.

提交回复
热议问题