Widget_Label times [message #9238] |
Wed, 04 June 1997 00:00 |
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--
|
|
|