comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Measure Performance via QueryPerformanceCounter
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Measure Performance via QueryPerformanceCounter [message #41712] Mon, 22 November 2004 07:11 Go to previous message
supaey2000 is currently offline  supaey2000
Messages: 2
Registered: November 2004
Junior Member
Thank you Ken and David for your help.

The PROFILER procedure was what I was looking for and I will use it in
future.
The resolution of Systime (/seconds) was not accurate enough to allow
measurements of the required time for 5 or 6 IDL commands within one
procedure.

The QueryPerformanceCounter still helped me for this.
It worked quite good with the C-Code Library IDL_Tools from Randall
Frank for IDL 5.6 (http://www.kilvarock.com/freesoftware/dlms/randallfrank.htm),
since Call_External can't handle "normal" paramters.
I give an short example for someone who needs to call kernel32.dll
functions.

err = EXTPROC_DEFINE('QueryPerformanceCounter','kernel32.dll','Que ryPerformanceCounter','l(p)')
err = EXTPROC_DEFINE('QueryPerformanceFrequency','kernel32.dll','Q ueryPerformanceFrequency','l(p)')

a=[0ll]
b=[0ll]
c=[0ll]
ret=QueryPerformanceFrequency(a)
ret=QueryPerformanceCounter(b)

for i=0,10 do print, 'Performance Test'
ret=QueryPerformanceCounter(c)

print, 'Time required: ' + strtrim(string((c-b)/double(a)),2) + '
Seconds'

Thank you,

Daniel
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: announcing GDL 0.8.6 (was: GDL 0.8.6 is out)
Next Topic: Draw Widgets

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 11:10:55 PDT 2025

Total time taken to generate the page: 0.08224 seconds