c# - Can someone decipher whether timeGetTime() or QueryPerformanceCounter/QueryPerformanceFrequency has lower overhead or/and accuracy? -
It is an idea that an existing project uses timeframe () (for frequent targets)
milliseconds = timegate time ();
Now, it can be changed with
double tmp = (double) lpPerformanceCount.QuadPart / lpFrequency.QuadPart; Millisecond = print (tmp * 1000);
Using a call with lpPerformanceCount.QuadPart and lpFrequency.QuadPart is being taken for query enforcement control () and QueryPerformanceFrequency ().
I know that Windows' internals are like Voodoo, but can anyone understand who is either more accurate or / and what are more overheads?
I suspect that the accuracy can be similar, but the query can have fewer overheads in the function quarter. But I have no hard data to return it.
Of course, I would not be surprised if the opposite is true.
If the overheads are small in any way then I will be more to know whether there is any difference in accuracy.
The accuracy of the time () The last time the biniperion used it will never be better than a millisecond on hardware support Depending on the query, the campaign holder also has variables that will never be worse than microseconds.
None of them have significant overhead, the QPC is probably a little heavy, even if it is important for you, is not quite clear from your question. I suspect, but with measures QPC
Comments
Post a Comment