X-Git-Url: http://nitlanguage.org diff --git a/lib/core/time.nit b/lib/core/time.nit index 83ddf5c..e5248d9 100644 --- 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 #