QueryPerformanceFrequency() [英] QueryPerformanceFrequency()

查看:119
本文介绍了QueryPerformanceFrequency()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此语句的含义是:

What is the meaning of this statement:

QueryPerformanceFrequency((LARGE_INTEGER*)&freq);


任何人都可以解释一下吗?


Can anyone please explain?

推荐答案

如果您担心
If you are concerned about the
(LARGE_INTEGER*)&freq


部分,我想freq变量未声明为LARGE_INTEGER(但至少从作者的角度来看,它的类型与之兼容),因此需要强制转换(在其后地址是通过&运算符获取的.)


part, I guess the freq variable isn''t declared as LARGE_INTEGER (but it''s type, at least from the author''s point of view, is compatible with) so a cast is needed (after its address is taken via the & operator).


对MSDN的简单搜索会产生
A simple search of MSDN yields this[^].


这篇关于QueryPerformanceFrequency()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆