
You can use the timeout function http://www.haskell.org/pipermail/glasgow-haskell-users/2001-April/001816.htm... 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@haskell.org http://www.haskell.org/mailman/listinfo/libraries
-- Hal Daume III | hdaume@isi.edu "Arrest this man, he talks in maths." | www.isi.edu/~hdaume