PR_TicksPerSecond 编辑
Returns the number of ticks per second currently used to determine the value of /wiki/en-US/docs/Mozilla/Projects/NSPR/Reference/PRIntervalTime
.
Syntax
#include <prinrval.h> PRUint32 PR_TicksPerSecond(void);
Returns
An integer between 1000 and 100000 indicating the number of ticks per second counted by /wiki/en-US/docs/Mozilla/Projects/NSPR/Reference/PRIntervalTime
on the current platform. This value is platform-dependent and does not change after NSPR is initialized.
Description
The value returned by PR_TicksPerSecond()
lies between PR_INTERVAL_MIN
and PR_INTERVAL_MAX
.
The relationship between a /wiki/en-US/docs/Mozilla/Projects/NSPR/Reference/PRIntervalTime
tick and standard clock units is platform-dependent. PR_PR_TicksPerSecond()
allows you to discover exactly what that relationship is. Seconds per tick (the inverse of PR_PR_TicksPerSecond()
) is always between 10 microseconds and 1 millisecond.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论