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

Home » Public Forums » archive » Re: wait loop
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: wait loop [message #26652 is a reply to message #26651] Thu, 20 September 2001 05:28 Go to previous messageGo to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
Reimar Bauer wrote:
> Dominik Paul wrote:
>
>> hi there,
>>
>> we would like to check a directory, if there is a file every 10 oder 20
>> minutes in an IDL programm For this we would like to use a waitung funktion,
>> in a loop, which doesnt cost to much processor time.
>>
>> Does somebody know a waiting function for this problem, because I coulnd
>> find anything suitable in the IDL help files.
>>
>> Thanks
>>
>> Dom
>>
>
>
> Dear Dom,
>
> are you looking for something like:
>
>
> FUNCTION wait_until_daytime,day_time
>
> ask_time = string2js(day_time)
> time_now = string2js(/now)
>
> IF ask_time lt time_now THEN return,0
>
> WHILE time_now LT ask_time DO time_now = string2js(/now)
>
> RETURN,1
> END
>
>
> result=wait_until_daytime('2001-09-20 13:35:00 000')
>
> http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/string2js.tar.gz
>
>
> regards
> Reimar
>
>

I can't actually test this procedure as I don't have string2js, but it
looks to me as though it would use around 100% of the CPU while it's
waiting.

That's not very friendly if it's a multiuser system.


--
-----------------------------------------------------------
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Way to determine big/little endian?
Next Topic: Re: Free-hand ROIs using DRAW_WIDGET

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

Current Time: Fri Oct 10 00:19:35 PDT 2025

Total time taken to generate the page: 0.15992 seconds