Sub-millisecond precision timing in C or C++

前端 未结 9 1052
天命终不由人
天命终不由人 2020-12-03 15:37

What techniques / methods exist for getting sub-millisecond precision timing data in C or C++, and what precision and accuracy do they provide? I\'m looking for methods tha

9条回答
  •  感动是毒
    2020-12-03 16:03

    A combination of GetSystemTimeAsFileTime and QueryPerformanceCounter can result in a reliable suite of code to obtain microsecond resolution time services on windows.

    See this comment in another thread here.

提交回复
热议问题