[Haskell-cafe] threadDelay

Immanuel Litzroth immanuel203 at gmail.com
Mon Feb 9 07:42:24 EST 2009

Am I correct in assuming this program should run 100 secs?

>import Control.Concurrent
>main = do
>     threadDelay 100000

Why do I get the folling result then?
 ghc -threaded Main.hs -o delay
time ./delay

real    0m0.104s
user    0m0.001s
sys    0m0.002s

Thanks in advance for all your wonderful comments,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090209/2727aec2/attachment.htm

More information about the Haskell-Cafe mailing list