Module: AMS::Timer
- Defined in:
- timer.rb
Class Method Summary (collapse)
-
+ (Fixnum) start(time_out, repeat) {|count, time| ... }
Create a timed procedure.
-
+ (Boolean) stop(id)
Kill the specified timed procedure.
Class Method Details
+ (Fixnum) start(time_out, repeat) {|count, time| ... }
Create a timed procedure.
11 12 13 |
# File 'timer.rb', line 11 def start(time_out, repeat, &block) AMS::C.start_timer(time_out, repeat, &block) end |
+ (Boolean) stop(id)
Kill the specified timed procedure.
19 20 21 |
# File 'timer.rb', line 19 def stop(id) AMS::C.stop_timer(id) end |