Re: profile_time in win32

new topic     » goto parent     » topic index » view thread      » older message » newer message
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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu