Skip to content

Instantly share code, notes, and snippets.

@esurdam
Forked from thejefflarson/bm.rb
Created December 21, 2016 23:38
Show Gist options
  • Select an option

  • Save esurdam/04db50cc1d84afa60ab8b39d95f5d6dc to your computer and use it in GitHub Desktop.

Select an option

Save esurdam/04db50cc1d84afa60ab8b39d95f5d6dc to your computer and use it in GitHub Desktop.

Revisions

  1. @thejefflarson thejefflarson created this gist May 23, 2011.
    5 changes: 5 additions & 0 deletions bm.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    def measure
    t = Time.now
    yield
    puts Time.now - t
    end