Sha256: 15b4e6e17b413920944e55c78f42ff08ae96b8c09e95de40864a22d3a9104240

Contents?: true

Size: 289 Bytes

Versions: 196

Compression:

Stored size: 289 Bytes

Contents

class TimerAction
  def register
    MSpec.register :start, self
    MSpec.register :finish, self
  end

  def start
    @start = Time.now
  end

  def finish
    @stop = Time.now
  end

  def elapsed
    @stop - @start
  end

  def format
    "Finished in %f seconds" % elapsed
  end
end

Version data entries

196 entries across 172 versions & 4 rubygems

Version Path
rhodes-7.6.0 lib/extensions/mspec/mspec/runner/actions/timer.rb
rhodes-7.5.1 lib/extensions/mspec/mspec/runner/actions/timer.rb
rhodes-7.4.1 lib/extensions/mspec/mspec/runner/actions/timer.rb
rhodes-7.1.17 lib/extensions/mspec/mspec/runner/actions/timer.rb
rhodes-6.2.0 lib/extensions/mspec/mspec/runner/actions/timer.rb
rhodes-6.0.11 lib/extensions/mspec/mspec/runner/actions/timer.rb
rhodes-5.5.18 lib/extensions/mspec/mspec/runner/actions/timer.rb
rhodes-5.5.17 lib/extensions/mspec/mspec/runner/actions/timer.rb
rhodes-5.5.15 lib/extensions/mspec/mspec/runner/actions/timer.rb
rhodes-5.5.0.22 lib/extensions/mspec/mspec/runner/actions/timer.rb
rhodes-5.5.2 lib/extensions/mspec/mspec/runner/actions/timer.rb
rhodes-5.5.0.7 lib/extensions/mspec/mspec/runner/actions/timer.rb
rhodes-5.5.0.3 lib/extensions/mspec/mspec/runner/actions/timer.rb
rhodes-5.5.0 lib/extensions/mspec/mspec/runner/actions/timer.rb
tauplatform-1.0.3 lib/extensions/mspec/mspec/runner/actions/timer.rb
tauplatform-1.0.2 lib/extensions/mspec/mspec/runner/actions/timer.rb
tauplatform-1.0.1 lib/extensions/mspec/mspec/runner/actions/timer.rb
mspec-1.8.0 lib/mspec/runner/actions/timer.rb
mspec-1.7.0 lib/mspec/runner/actions/timer.rb
mspec-1.6.0 lib/mspec/runner/actions/timer.rb