I understand this is the performance respond to frequency, in ticks per second. Ns don"t know exactly how to convert this to a unit of time(let"s say seconds, milli-seconds or nano-seconds.. Anything) ?

How plenty of ticks constitute a second ? What is the conversion variable ?

LARGE_INTEGER freq;KeQueryPerformanceCounter(&freq);


In the link:


KeQueryPerformanceCounter always returns a 64-bit integer that represents the existing value the a monotonically nondecreasing counter. The counter starts incrementing native zero when the computer system starts up.

You are watching: How many ticks are in a second

To gain the resolution of the timer offered to accumulate the current tick count, specify a non-NULL guideline value because that the PerformanceFrequency parameter. The frequency worth that the regimen writes come the place pointed to by this parameter is the number of ticks every second.

Here, it means that freq variable will contain ticks every second

enhance this prize
edited might 27 "13 in ~ 8:51
answered might 27 "13 at 8:49

7,5792323 silver badges4545 bronze title
add a comment |

your Answer

Thanks for contributing response to ridge Overflow!

Please be certain to answer the question. Carry out details and share her research!

But avoid

Asking because that help, clarification, or responding to various other answers.Making statements based on opinion; back them increase with referrals or personal experience.

To learn more, view our advice on writing great answers.

See more: How Many Inches Is 44 Cm To Inches, How To Convert 44 Cm To Inches

Draft saved
Draft discarded

Sign up or log in

authorize up utilizing Google
sign up making use of Facebook
sign up using Email and Password

Post together a guest

email Required, however never shown

Post as a guest


Required, however never shown

article Your answer Discard

By clicking “Post her Answer”, girlfriend agree to our regards to service, privacy policy and cookie policy

Not the price you're spring for? Browse various other questions tagged c++ operating-system clock msdn performancecounter or questioning your very own question.

The Overflow Blog
Featured top top Meta
how do girlfriend set, clear, and toggle a single bit?
What space the differences between a pointer variable and also a referral variable in C++?
What are POD varieties in C++?
exactly how do ns iterate end the words of a string?
How have the right to I safely develop a nested directory in Python?
How deserve to I profile C++ code running on Linux?
What are rvalues, lvalues, xvalues, glvalues, and prvalues?
What are the simple rules and idioms because that operator overloading?
how do I achieve the theoretical maximum of 4 FLOPs every cycle?
Why room elementwise enhancements much much faster in separate loops 보다 in a linked loop?
hot Network concerns more hot concerns

question feed
subscribe to RSS
inquiry feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader.


ridge Overflow
stack Exchange Network
site architecture / logo © 2021 ridge Exchange Inc; user contributions license is granted under cc by-sa. Rev2021.9.20.40247

Stack Overflow works finest with JavaScript enabled

your privacy

By clicking “Accept every cookies”, you agree ridge Exchange have the right to store cookies on your maker and disclose information in accordance with our Cookie Policy.