Calculating time by the C++ code

后端 未结 7 781
囚心锁ツ
囚心锁ツ 2021-01-02 22:21

I know this question has been asked few times over SO but none of them is really helping me out, so asking again.

I am using windows xp and running visual studio c++

7条回答
  •  醉梦人生
    2021-01-02 22:54

    Here is a portable, self-contained, short implementation of exactly what you need: http://cplusplus.co.il/2009/08/19/portable-measurement-of-execution-time/

    If the resolution isnt fine enough, you should execute your test a couple of times.

提交回复
热议问题