lib/knapsack_pro/tracker.rb in knapsack_pro-0.35.0 vs lib/knapsack_pro/tracker.rb in knapsack_pro-0.36.0
- old
+ new
@@ -16,10 +16,10 @@
def start_timer
@start_time = now_without_mock_time.to_f
end
def stop_timer
- @execution_time = now_without_mock_time.to_f - @start_time
+ @execution_time = @start_time ? now_without_mock_time.to_f - @start_time : 0.0
update_global_time
update_test_file_time
@execution_time
end