Skip to content

Instantly share code, notes, and snippets.

@sonalkr132
Created February 18, 2016 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sonalkr132/cc3df89f440f63452375 to your computer and use it in GitHub Desktop.
Save sonalkr132/cc3df89f440f63452375 to your computer and use it in GitHub Desktop.
stamp methods to track time
$start_time = Time.now.to_f
def stamp(label = '')
puts "%.3f\t%s" %[
Time.now.to_f - $start_time,
label
]
end
stamp "start"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment