Method: Transform#start_timer
- Defined in:
- lib/source/redshift/transform.rb
#start_timer ⇒ Object
128 129 130 131 132 133 |
# File 'lib/source/redshift/transform.rb', line 128 def start_timer `if (this.__timer__) return false` `this.__time__ = (+new Date) - this.__time__` `this.__timer__ = this.m$step.periodical(Math.round(1000 / #{@options[:fps]}), this)` return true end |