1 Dec
2010
1 Dec
'10
3:19 a.m.
I'd like to write a Haskell program that executes an IO action every 50 milliseconds. It would be most helpful if someone could point me in the right direction. -- mac
1 Dec
1 Dec
3:45 a.m.
Excerpts from matthew coolbeth's message of Tue Nov 30 16:49:52 -0500 2010:
I'd like to write a Haskell program that executes an IO action every 50 milliseconds. It would be most helpful if someone could point me in the right direction.
Hello Matthew, Check out forkIO and threadDelay. http://www.haskell.org/ghc/docs/6.12.2/html/libraries/base-4.2.0.1/Control-C... Basically, you can fork a thread and then have it do something, delay 50 ms, and then invoke itself again. Edward
5525
Age (days ago)
5525
Last active (days ago)
1 comments
2 participants
participants (2)
-
Edward Z. Yang -
matthew coolbeth