summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-sleep/README.md
blob: 4543c49cf91b9a2adac4fd2aa48d97138d2fb152 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Sleep Module for mruby
mruby sleep module

## install by mrbgems
 - add conf.gem line to `build_config.rb`
```ruby
MRuby::Build.new do |conf|

    # ... (snip) ...

    conf.gem :git => 'https://github.com/matsumoto-r/mruby-sleep.git'
end
```

## example

```ruby
Sleep::sleep(10)
Sleep::usleep(10000)
```

# License
under the MIT License:

* http://www.opensource.org/licenses/mit-license.php