blob: eb6451dd734512c3e58ee75132ba675cd69fa2af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import Posix
main =
epochTime >>= \ start ->
sleep 5 >>
let timeleft = 0 in
epochTime >>= \ finish ->
putStr "Started: " >>
print start >>
putStr "\nSlept: " >>
print (5 - timeleft) >>
putStr "\nFinished: " >>
print finish >>
putChar '\n'
|