mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
33742d941f
In addition, update the documents referring `build_config.rb` which is no longer used. The new `build_config.rb` describes the new configuration structure in the comment.
29 lines
358 B
Markdown
29 lines
358 B
Markdown
# Sleep Module for mruby
|
|
mruby sleep module
|
|
|
|
## install by mrbgems
|
|
- add conf.gem line to your build configuration.
|
|
|
|
```ruby
|
|
MRuby::Build.new do |conf|
|
|
|
|
# ... (snip) ...
|
|
|
|
conf.gem :core => 'mruby-sleep'
|
|
end
|
|
```
|
|
|
|
## example
|
|
|
|
```ruby
|
|
sleep(10)
|
|
usleep(10000)
|
|
```
|
|
|
|
# License
|
|
under the MIT License:
|
|
|
|
* http://www.opensource.org/licenses/mit-license.php
|
|
|
|
|