mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Round execution time
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user