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

Home » Public Forums » archive » Widget_Label times
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Widget_Label times [message #9238] Wed, 04 June 1997 00:00
Ken Stone is currently offline  Ken Stone
Messages: 8
Registered: December 1996
Junior Member
This is a multi-part message in MIME format.

--------------47C95E619B5
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello,

I've tried the attached routine on AIX, Linux and NT. The NT
results seem a bit odd. The time it takes to update the widget_label
increases with each loop iteration. Memory usage goes up also. Linux
and AIX however show no such signs of "leakage". Has anyone else seen
this type of problem?

Ken Stone

--------------47C95E619B5
Content-Type: text/plain; charset=us-ascii; name="testwc.pro"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="testwc.pro"



;; Test

N = 5
M = 1000

times = fltarr(N)
w1 = widget_base()
cw1 = widget_label(w1, value=" Hello there, Fred!")

widget_control, /realize, w1

for j = 0, N-1 do begin
t1 = systime(1)
for i = 0l, M do begin
str = string(i)
widget_control, cw1, set_value = str
endfor
et = systime(1) - t1
help, /mem
print, " N =", j, " incremental time = ", systime(1)-t1
times(j) = et
endfor

sd = stdev(times, mean)
print, "Mean time and std. dev =", mean, sd
print, "Total time = ", total(times)
widget_control, w1, /destroy

end
--------------47C95E619B5--
[Message index]
 
Read Message
Previous Topic: IDL 5 Anomaly Database
Next Topic: IDL 5.0 "Anomaly" Database

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

Current Time: Tue Dec 02 03:34:50 PST 2025

Total time taken to generate the page: 1.28605 seconds