Permalink
Browse files

time the execution

  • Loading branch information...
bbatsov committed May 17, 2012
1 parent 23e10f3 commit 3bc8963a0f538db8a0cb937bcdad88316e32cd78
Showing with 7 additions and 1 deletion.
  1. +7 −1 bin/rubocop
View
@@ -3,6 +3,12 @@
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib')
require 'rubocop'
+require 'benchmark'
cli = Rubocop::CLI.new
-exit cli.run
+
+time = Benchmark.realtime do
+ cli.run
+end
+
+puts "Finished in #{time} seconds"

0 comments on commit 3bc8963

Please sign in to comment.