
9 Feb
2009
9 Feb
'09
7:42 a.m.
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, Immanuel

7:54 a.m.
Hello Immanuel, Monday, February 9, 2009, 3:42:24 PM, you wrote:
Am I correct in assuming this program should run 100 secs? real 0m0.104s
may be, 100 msecs? :) -- | Suspends the current thread for a given number of microseconds -- (GHC only). -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com
5947
Age (days ago)
5947
Last active (days ago)
2 comments
3 participants
participants (3)
-
Bulat Ziganshin
-
Immanuel Litzroth
-
Svein Ove Aas