c++ - GetSystemTimePreciseAsFileTime 和 QueryPerformanceCounter

标签 c++ windows time

我想知道 Windows 函数 GetSystemTimePreciseAsFileTime 是否使用 QueryPerformanceCounter/RDTSC 计数器以亚微秒分辨率检索 UTC 时间?

最佳答案

在内部GetSystemTimeAsPreciseFileTime确实使用QueryPerformanceCounter,一些值来自 USER_SHARED_DATA ,以及一些返回其值的算术。

关于c++ - GetSystemTimePreciseAsFileTime 和 QueryPerformanceCounter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32376799/

相关文章:

c++ - BOOST SPIRIT 解析 - 创建正确的 AST 树

c++ - 在C/C++中,如何获取虚拟内存空间中的数据?

c++ - 如何循环加载所有用户的注册表配置单元

python - 考虑重叠情况下确定总时间的有效方法

matlab - Matlab R2015b 中 `toc` 函数中的可能错误

c++ - 使用来自不同线程的 postthreadmessage()

c++ - 为什么要在 catch block 中使用 "const"?

windows - Windows中的声音检测

windows - 如何将 session 导入 MobaXterm?

ruby - 在没有基准或时间的情况下用 Ruby 测量用户时间或系统时间