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

Home » Public Forums » archive » Assignment Time for a 3d Variable
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Assignment Time for a 3d Variable [message #46481] Wed, 23 November 2005 04:15
Nuno Oliveira is currently offline  Nuno Oliveira
Messages: 75
Registered: October 2003
Member
I was making a routine that was doing an intense assignment in one of
the three directions possible, according to an option (either the first,
second or third dimension). I noticed that when I was doing it in the
first direction I took MUCH more time than in the other two directions.

Anyone has a clue for why does this happen? And anyone knows a way that
can make execution time similar? (Making the others to wait is not a
valid answer, ;) )

Here is the code for checking the execution times:

time = systime(1)
for k = 0, 99 do $
temp = vol[k,*,*]
print, 'execution time (for x axis): '+STRING(systime(1) - time)

time = systime(1)
for k = 0, 99 do $
temp = vol[*,k,*]
print, 'execution time (for y axis): '+STRING(systime(1) - time)

time = systime(1)
for k = 0, 99 do $
temp = vol[*,k,*]
print, 'execution time (for z axis): '+STRING(systime(1) - time)

And this is what I get:

execution time (for x axis): 0.24305296
execution time (for y axis): 0.0063638687
execution time (for z axis): 0.0065510273
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: image display with different pixel size in x & y
Next Topic: Re: Creating Panels in iTools

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

Current Time: Wed Oct 08 13:54:35 PDT 2025

Total time taken to generate the page: 0.00544 seconds