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 ?
In the link:
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
boost this prize
edited may 27 "13 at 8:51
answered might 27 "13 in ~ 8:49
7,5792323 silver badges4646 bronze badges
include a comment |
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
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
Post together a guest
email Required, but never shown
Post together a guest
Required, yet never shown
write-up Your answer Discard
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
Featured top top Meta
exactly how do friend set, clear, and toggle a solitary bit?
What space the differences in between a pointer variable and also a referral variable in C++?
What space POD species in C++?
just how do i iterate end the words of a string?
How have the right to I safely create a nested brochure in Python?
How have the right to I profile C++ password running on Linux?
What space 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 per cycle?
Why are elementwise enhancements much quicker in different loops 보다 in a merged loop?
hot Network inquiries much more hot inquiries
i ordered it to RSS
inquiry feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
ridge Exchange Network
site design / logo © 2021 ridge Exchange Inc; user contributions license is granted under cc by-sa. Rev2021.10.22.40552