summaryrefslogtreecommitdiffhomepage
path: root/test/assert.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-01-03 20:20:36 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-01-03 20:20:36 +0900
commit2c4b0eeff84ab7549ca0c95390f5146f0366bcd9 (patch)
tree824b4fbdca862b0471fe1656b8820534369d990b /test/assert.rb
parent3dea108857870ca25741e24aaa04c90240d9c958 (diff)
parenta3111f144cb84a9aa39ee2d80a76ee6cdc90d22c (diff)
downloadmruby-2c4b0eeff84ab7549ca0c95390f5146f0366bcd9.tar.gz
mruby-2c4b0eeff84ab7549ca0c95390f5146f0366bcd9.zip
Merge pull request #2691 from deuwert/tidyup-test-time
Round execution time
Diffstat (limited to 'test/assert.rb')
-rw-r--r--test/assert.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/assert.rb b/test/assert.rb
index 72e4d3b37..6fad58fa8 100644
--- a/test/assert.rb
+++ b/test/assert.rb
@@ -228,7 +228,8 @@ def report()
t_print("Crash: #{$kill_test}\n")
if Object.const_defined?(:Time)
- t_print(" Time: #{Time.now - $test_start} seconds\n")
+ t_time = Time.now - $test_start
+ t_print(" Time: #{t_time.round(2)} seconds\n")
end
end