Files
mruby-mruby/mrbgems/mruby-sleep
Yukihiro "Matz" Matsumoto 53a25bab14 mruby-sleep, hal-posix-socket: fix amalgamation compatibility
mruby-sleep: declare slp_tm before #ifdef _WIN32 block to fix
undeclared variable error in non-Windows branch.

hal-posix-socket: use #if defined(HAVE_SA_LEN) && HAVE_SA_LEN instead
of #ifdef HAVE_SA_LEN, since mruby-socket defines HAVE_SA_LEN to 0 on
non-BSD platforms.

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-02 18:28:31 +09:00
..
2021-03-01 10:06:17 +10:00
2021-05-03 23:17:04 +09:00
2024-05-09 17:08:27 +09:00

Sleep Module for mruby

mruby sleep module

Install by mrbgems

  • add conf.gem line to your build configuration.
MRuby::Build.new do |conf|

    # ... (snip) ...

    conf.gem :core => 'mruby-sleep'
end

Example

sleep(10)
usleep(10000)

License

under the MIT License: