← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH 08/12] windows: provide performance measurement primitives

 

Thanks for pointing this out @Mark.  My preference is to use wxWidgets
for features like this whenever possible rather than reinvent the wheel.
 As much as we beat wxWidgets over the head, we often don't take
advantage of the features they do provide the handle the platform
differences.

On 5/29/2016 2:24 PM, Mark Roszko wrote:
> Yea QueryPerformanceCounter is the correct Windows way to do things.
> 
> Though I wonder why wxStopWatch isn't used for profiling since
> everything is wxWidgets based anyway......wxStopWatch uses
> QueryPerformanceCounter on windows too.
> 
> On Fri, May 27, 2016 at 10:32 AM, Simon Richter
> <Simon.Richter@xxxxxxxxxx> wrote:
>>
>> On Windows, performance measurement is best performed using
>> QueryPerformanceCounter, which reports ticks with an arbitrary but fixed
>> frequency.
>> ---
>>  include/profile.h | 32 ++++++++++++++++++++++++++++++++
>>  1 file changed, 32 insertions(+)
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
>>
> 
> 
> 



References