Sha256: f89a98efbe75d678362c6395e6587406c57a56ff4f10bfcf3c7152f3319b691d

Contents?: true

Size: 175 Bytes

Versions: 5

Compression:

Stored size: 175 Bytes

Contents

$:.unshift('lib')
require 'rufus/scheduler'

loop do

  print "> "
  s = gets

  t = Time.now
  puts Rufus::CronLine.new(s).next_time
  puts "took #{Time.now - t} secs"
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
rufus-scheduler-2.0.7 misc/cronline_next_time_cost.rb
tanzeeb-rufus-scheduler-2.0.7.2 misc/cronline_next_time_cost.rb
rufus-scheduler-2.0.6 misc/cronline_next_time_cost.rb
rufus-scheduler-2.0.5 misc/cronline_next_time_cost.rb
rufus-scheduler-2.0.4 misc/cronline_next_time_cost.rb