Re: Measuring ?elapsed? time
Take a look at the Time code using GetTickCount link in my signature.
Re: Measuring ?elapsed? time
i did, what does that return? milliseconds?
Re: Measuring ?elapsed? time
Re: Measuring ?elapsed? time
oh ok it works good, i did notice when I refreshed the milliseconds every second using a timer it was like 1 or 2 milliseconds off each time, now do you think that is the timers fault or the gettickcount?
Re: Measuring ?elapsed? time
The timer is only accurate to about 40ms.
Re: Measuring ?elapsed? time
Use the QueryPerformanceCounter API as its more accurate then GetTickCount. :)
Re: Measuring ?elapsed? time
ok the reason i ask is because i am going to be timming very long audio and if down the road it was a second off, that would be bad... But looks like it should work, thanks alot!
Good rep for you! I owe you one anyway, well actually like 12, man you got alot of rep power!
Re: Measuring ?elapsed? time
Quote:
Originally Posted by RobDog888
Use the QueryPerformanceCounter API as its more accurate then GetTickCount. :)
Ok can you help? How would I? If you dont mind assisting...
Re: Measuring ?elapsed? time
Sorry, I am only checking in before heading out for the morning/day. I remembered the API from Jacob Roman, I think it was, that used it to prove that the "With" block vb function as slower then the fully qualified object. There should be some code examples already on the forums using it but here is the example from allapi.net - http://www.allapi.net/apilist/QueryP...eCounter.shtml
Re: Measuring ?elapsed? time
k thanks, i actually found that same code here on the forums also, I look into it...