mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
a170c1dd70
* Method implementation functions made `static`. * Function declaration style has been changed. * Unnecessary header file `mrb_sleep.h` removed. * Used `mrb_get_args()` instead of self parsing. * Indentation kept untouched.
Sleep Module for mruby
mruby sleep module
install by mrbgems
- add conf.gem line to
build_config.rb
MRuby::Build.new do |conf|
# ... (snip) ...
conf.gem :git => 'https://github.com/matsumoto-r/mruby-sleep.git'
end
example
Sleep::sleep(10)
Sleep::usleep(10000)
License
under the MIT License: