GetLocalTime() API time resolution

前端 未结 4 861
臣服心动
臣服心动 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:22

    On Windows you can use the 'high performance counter API'. Check out: QueryPerformanceCounter and QueryPerformanceCounterFrequency for the details.

提交回复
热议问题