Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Sleep/Eiffel/sleep.e
Normal file
17
Task/Sleep/Eiffel/sleep.e
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
class
|
||||
APPLICATION
|
||||
inherit
|
||||
EXECUTION_ENVIRONMENT
|
||||
create
|
||||
make
|
||||
feature -- Initialization
|
||||
make
|
||||
-- Sleep for a given number of nanoseconds.
|
||||
do
|
||||
print ("Enter a number of nanoseconds: ")
|
||||
io.read_integer_64
|
||||
print ("Sleeping...%N")
|
||||
sleep (io.last_integer_64)
|
||||
print ("Awake!%N")
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue