Lahey Support
08-15-2003, 01:19 AM
-----Original Message-----
From: cosine Cheng [address removed]
To: [address removed] [address removed]
Date: Friday, January 22, 1999 2:18 PM
Subject: [LF] Help!pause for desired time duration
>Dear All:
>
> In FORTRAN90, we can use 'pause' or 'read(*,*)'
>
>to pause the excutable, but how can one pause it
>
>for a desired time period, say, one sec or 10 min.?
>
>
>Thanks
>
>by Cheng Cosine
> Jan/22/1999 UT
One inefficient way to do this is to read the time of day clock to get
the current time, then loop reading the clock again until the
desired time has lapsed, i.e. do while the clock does not have the
desired time. This can be slightly complicated if you happen to want to
time past midnight. This scheme exercizes the CPU quite well.
But is is system independent. (It won't work of course if the
system does not have a clock, in which case the time and date
routine returns error information.)
>
>__________________________________________________ ____
>Get Your Private, Free Email at http://www.hotmail.com
>
From: cosine Cheng [address removed]
To: [address removed] [address removed]
Date: Friday, January 22, 1999 2:18 PM
Subject: [LF] Help!pause for desired time duration
>Dear All:
>
> In FORTRAN90, we can use 'pause' or 'read(*,*)'
>
>to pause the excutable, but how can one pause it
>
>for a desired time period, say, one sec or 10 min.?
>
>
>Thanks
>
>by Cheng Cosine
> Jan/22/1999 UT
One inefficient way to do this is to read the time of day clock to get
the current time, then loop reading the clock again until the
desired time has lapsed, i.e. do while the clock does not have the
desired time. This can be slightly complicated if you happen to want to
time past midnight. This scheme exercizes the CPU quite well.
But is is system independent. (It won't work of course if the
system does not have a clock, in which case the time and date
routine returns error information.)
>
>__________________________________________________ ____
>Get Your Private, Free Email at http://www.hotmail.com
>