Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env runghc
- import Control.Monad
- getTime = liftM (read :: String -> Integer) getLine
- main = do first <- getTime
- catch (loop first) (\_ -> return ())
- loop prev = do next <- getTime
- putStrLn $ show $ next - prev
- loop next
Add Comment
Please, Sign In to add comment