On Sun, 15 Sep 2013 13:00:36 -0700
Unknown User <[email protected]> wrote:
> If my perl script has a sleep for say 300 seconds, when the sleep is
> being run is there any way i can find the time remaining in the sleep
> say by sending a signal?
>
> Thanks,
Not directly. You have to record the time before the sleep and then you
can measure how long the sleep lasted.
my $started_sleep = time;
sleep 300;
my $time_asleep = time - $started_sleep;
--
Don't stop where the ink does.
Shawn
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/