Re: profile_time in win32
- Posted by jimcbrown (admin) Aug 30, 2008
- 1043 views
codepilot said...
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.
Ok, a patch of the exact same code against 4.0 is available here: http://linuxbuddhist.net:8080/winprof40.diff
I may work on adding in the changes you described above in a little bit.