Re: profile_time in win32
- Posted by codepilot Aug 30, 2008
- 1031 views
That looks like all the changes I made. The WinTimer might need to tweaked a bit, because the "Sleep" function will cause slight variations in the timing profile, and using floating point math will slow it down especially since the thread is created with THREAD_PRIORITY_TIME_CRITICAL. Also there is currently no code to kill the timing thread which is a must.
So Sleep longer maybe 10ms or more, and kill it and start it with profile() instead.