Skip to content

Instantly share code, notes, and snippets.

@sergiokas
sergiokas / silly_ruby_profiler.rb
Created October 17, 2018 13:10
Very simplistic Ruby profiler
def profile_me (&block)
start_time = Time.now
puts "Start ==> #{start_time}"
yield
end_time = Time.now
puts "End ==> #{end_time} (Took #{end_time.to_f - start_time.to_f} secs)"
end

Keybase proof

I hereby claim:

  • I am sergiokas on github.
  • I am sergiokas (https://keybase.io/sergiokas) on keybase.
  • I have a public key ASAMfCHRj3OdnVSsr0ogUEgmk3EwcIRZcHdyByE-y8O6hAo

To claim this, I am signing this object: