GetLocalTime() API time resolution

前端 未结 4 877
臣服心动
臣服心动 2021-01-12 10:06

I need to find out time taken by a function in my application. Application is a MS VIsual Studio 2005 solution, all C code.

I used thw windows API GetLocalTime(SYST

4条回答
  •  误落风尘
    2021-01-12 10:11

    You can try to use clock() which will provide the number of "ticks" between two points. A "tick" is the smallest unit of time a processor can measure.

    As a side note, you can't use clock() to determine the actual time - only the number of ticks between two points in your program.

提交回复
热议问题