Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Sleep/ALGOL-68/sleep.alg
Normal file
8
Task/Sleep/ALGOL-68/sleep.alg
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# using ping to sleep #
|
||||
INT milliseconds = read int; # ping uses milliseconds #
|
||||
print ("Sleeping...");
|
||||
VOID (system ("ping 0.0.0.1 -n 1 -w " + whole (milliseconds, 0) + " >NUL"));
|
||||
# 0.0.0.1 is an invalid IP address and cannot be used, so this will never conflict with a real IP address #
|
||||
# ping -n gives number of tries, -w timeout, and >NUL deletes output so the user does not see it #
|
||||
print (new line);
|
||||
print ("Awake!")
|
||||
Loading…
Add table
Add a link
Reference in a new issue