Sleep: Difference between revisions

Content added Content deleted
m (→‎{{header|Phix}}: added to distro)
m (Removed useless ".string". Removed lot of parentheses to make code easier to read.)
Line 1,543: Line 1,543:
<lang Nim>import os, strutils
<lang Nim>import os, strutils


echo("Enter how long I should sleep (in milliseconds):")
echo "Enter how long I should sleep (in milliseconds):"
var timed = parseInt(readLine(stdin).string)
var timed = stdin.readLine.parseInt()
echo("Sleeping...")
echo "Sleeping..."
sleep(timed)
sleep timed
echo("Awake!")</lang>
echo "Awake!"</lang>


=={{header|NS-HUBASIC}}==
=={{header|NS-HUBASIC}}==