sleeping
Hal Daume III
hdaume at ISI.EDU
Mon Oct 27 09:46:52 EST 2003
You can use the timeout function
http://www.haskell.org/pipermail/glasgow-haskell-users/2001-April/001816.html
and simply wait for the exception.
or, if you require less precision, you could just loop and check the
System.Time until a certain amount of time has elapsed.
Other than that, I don't think so.
On Mon, 27 Oct 2003, Sven Panne wrote:
> Just a short question: If I'm not mistaken, there is no way in the "base"
> package to sleep for a given amount of time in portable a way. Of course
> there is System.Posix.Unistd.sleep and System.Posix.Unistd.usleep in the
> "unix" package, but shouldn't we have a similar feature in the "base"
> libraries? Or have I overlooked something obvious?
>
> Cheers,
> S.
>
>
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
--
Hal Daume III | hdaume at isi.edu
"Arrest this man, he talks in maths." | www.isi.edu/~hdaume
More information about the Libraries
mailing list