keter/test/process-torun2.hs

11 lines
234 B
Haskell
Raw Normal View History

2012-05-06 14:28:18 +04:00
import Control.Concurrent
import Data.Time
import Control.Monad
import System.IO
main = withFile "process2.txt" WriteMode $ \h -> forever $ do
now <- getCurrentTime
hPutStrLn h $ show now
hFlush h
threadDelay 1000000