nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
a_star: don't crash on deserialization errors and limit static types
[nit.git]
/
lib
/
core
/
time.nit
diff --git
a/lib/core/time.nit
b/lib/core/time.nit
index
83ddf5c
..
e5248d9
100644
(file)
--- a/
lib/core/time.nit
+++ b/
lib/core/time.nit
@@
-51,6
+51,13
@@
redef class Sys
`}
end
+redef class Int
+ # Sleep approximately `self` seconds
+ #
+ # Is not interrupted by signals.
+ fun sleep do to_f.sleep
+end
+
redef class Float
# Sleep approximately `self` seconds
#