summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2010-03-29 14:06:47 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2010-03-29 14:06:47 +0200
commitc230d01063b1ca9ade3bd12275033edd5a8b032b (patch)
treedc18b3904752f0511fa10868316a4297026d90ad
parent862244cf77543af841c67e380ef2ee160fed1d76 (diff)
parent732c9bc4c009d73c2763f5dc661f69e97be507a9 (diff)
downloadbacon-c230d01063b1ca9ade3bd12275033edd5a8b032b.tar.gz
bacon-c230d01063b1ca9ade3bd12275033edd5a8b032b.tar.xz
bacon-c230d01063b1ca9ade3bd12275033edd5a8b032b.zip
Merge remote branch 'cldwalker/timer'
-rw-r--r--lib/bacon.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bacon.rb b/lib/bacon.rb
index 47dc31e..371e9ab 100644
--- a/lib/bacon.rb
+++ b/lib/bacon.rb
@@ -23,6 +23,7 @@ module Bacon
 
   def self.summary_on_exit
     return  if Counter[:installed_summary] > 0
+    @timer = Time.now
     at_exit {
       handle_summary
       if $!
@@ -68,7 +69,7 @@ module Bacon
     end
 
     def handle_summary
-      puts
+      puts "", "Finished in #{Time.now - @timer} seconds."
       puts ErrorLog  if Backtraces
       puts "%d tests, %d assertions, %d failures, %d errors" %
         Counter.values_at(:specifications, :requirements, :failed, :errors)