I understand this is the performance counter frequency, in ticks every second. Ns don"t know just how to convert this come a unit that time(let"s to speak seconds, milli-seconds or nano-seconds.. Anything) ?

How plenty of ticks constitute a 2nd ? What is the conversion factor ?

LARGE_INTEGER freq;KeQueryPerformanceCounter(&freq);

*

In the link:

Remarks

KeQueryPerformanceCounter always returns a 64-bit integer the represents the existing value that a monotonically nondecreasing counter. The respond to starts incrementing indigenous zero as soon as the computer starts up.

You are watching: How many ticks in a second

To gain the resolution that the timer used to accumulate the present tick count, clues a non-NULL pointer value for the PerformanceFrequency parameter. The frequency value that the program writes come the place pointed come by this parameter is the number of ticks every second.

Here, it way that freq variable will certainly contain ticks every second


share
boost this prize
monitor
edited may 27 "13 at 8:51
answered might 27 "13 in ~ 8:49
*

fatihkfatihk
7,5792323 silver badges4646 bronze badges
include a comment |

her Answer


Thanks for contributing response to stack Overflow!

Please be certain to answer the question. Administer details and also share your research!

But avoid

Asking because that help, clarification, or responding to other answers.Making statements based upon opinion; earlier them increase with recommendations or personal experience.

To discover more, watch our tips on writing an excellent answers.

See more: How Many Cups Is 1.7 Liters To Cups Converter, How Many Cups Are Equal To 1


Draft saved
Draft discarded

Sign increase or log in


authorize up making use of Google
sign up making use of Facebook
sign up making use of Email and Password
submit

Post together a guest


surname
email Required, but never shown


Post together a guest


name
email

Required, yet never shown


write-up Your answer Discard

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


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


The Overflow Blog
Upcoming events
Featured top top Meta
related
2848
exactly how do friend set, clear, and toggle a solitary bit?
3569
What space the differences in between a pointer variable and also a referral variable in C++?
1110
What space POD species in C++?
3189
just how do i iterate end the words of a string?
4952
How have the right to I safely create a nested brochure in Python?
1998
How have the right to I profile C++ password running on Linux?
1511
What space rvalues, lvalues, xvalues, glvalues, and prvalues?
2296
What are the simple rules and idioms because that operator overloading?
673
how do I achieve the theoretical maximum of 4 FLOPs per cycle?
2346
Why are elementwise enhancements much quicker in different loops 보다 in a merged loop?
hot Network inquiries much more hot inquiries

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


*

lang-cpp
stack Overflow
products
agency
ridge Exchange Network
site design / logo © 2021 ridge Exchange Inc; user contributions license is granted under cc by-sa. Rev2021.10.22.40552


Stack Overflow works best with JavaScript enabled
*

her privacy

By click “Accept every cookies”, you agree stack Exchange have the right to store cookie on your device and disclose info in accordance through our Cookie Policy.