source:
EcnlProtoTool/trunk/mruby-2.1.1/mrbgems/mruby-sleep/README.md
Last change on this file was 439, checked in by , 4 years ago | |
---|---|
File size: 377 bytes |
Line | |
---|---|
1 | # Sleep Module for mruby |
2 | mruby sleep module |
3 | |
4 | ## install by mrbgems |
5 | - add conf.gem line to `build_config.rb` |
6 | ```ruby |
7 | MRuby::Build.new do |conf| |
8 | |
9 | # ... (snip) ... |
10 | |
11 | conf.gem :core => 'mruby-sleep' |
12 | end |
13 | ``` |
14 | |
15 | ## example |
16 | |
17 | ```ruby |
18 | sleep(10) |
19 | usleep(10000) |
20 | ``` |
21 | |
22 | # License |
23 | under the MIT License: |
24 | |
25 | * http://www.opensource.org/licenses/mit-license.php |
26 | |
27 |
Note:
See TracBrowser
for help on using the repository browser.