Created
July 22, 2015 02:09
-
-
Save lulalala/1b227940915c053acc16 to your computer and use it in GitHub Desktop.
sprockets time elapsed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start_time = Time.now.to_f | |
time_elapsed = lambda { ((Time.now.to_f - start_time) * 1000).to_i } | |
logger.info "#{msg} 404 Not Found (#{time_elapsed.call}ms)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment