Author: assaf
Date: Thu Aug  7 14:37:22 2008
New Revision: 683723

URL: http://svn.apache.org/viewvc?rev=683723&view=rev
Log:
Removed benchmark since we're only using real time.

Modified:
    incubator/buildr/trunk/bin/buildr

Modified: incubator/buildr/trunk/bin/buildr
URL: 
http://svn.apache.org/viewvc/incubator/buildr/trunk/bin/buildr?rev=683723&r1=683722&r2=683723&view=diff
==============================================================================
--- incubator/buildr/trunk/bin/buildr (original)
+++ incubator/buildr/trunk/bin/buildr Thu Aug  7 14:37:22 2008
@@ -15,16 +15,15 @@
 # the License.
 
 
-require 'benchmark'
-times = Benchmark.measure do
-  require 'rubygems'
-  require 'buildr'
-  Buildr.application.run
-end
+start = Time.now
+require 'rubygems'
+require 'buildr'
+Buildr.application.run
 if verbose
+  elapsed = Time.now - start
   real = []
-  real << ("%ih" % (times.real / 3600)) if times.real >= 3600
-  real << ("%im" % ((times.real / 60) % 60)) if times.real >= 60
-  real << ("%.3fs" % (times.real % 60))
+  real << ("%ih" % (elapsed / 3600)) if elapsed >= 3600
+  real << ("%im" % ((elapsed / 60) % 60)) if elapsed >= 60
+  real << ("%.3fs" % (elapsed % 60))
   puts $terminal.color("Completed in #{real.join}", :green)
 end


Reply via email to