From a4e88c28970c80469b60fad14a7cb02aea3e1c67 Mon Sep 17 00:00:00 2001 From: Ignacio Chiazzo Cardarello Date: Thu, 1 Aug 2024 17:01:24 -0300 Subject: [PATCH] Clarify that the total_time is in seconds It wasn't clear to me that the time was in seconds and not ms. ```ruby start_time = Time.now.utc.to_f # ... total_time = (Time.now.utc.to_f - start_time).round(6) ``` --- lib/job-iteration/iteration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/job-iteration/iteration.rb b/lib/job-iteration/iteration.rb index 49a92db9..0ccac3e2 100644 --- a/lib/job-iteration/iteration.rb +++ b/lib/job-iteration/iteration.rb @@ -14,7 +14,7 @@ module Iteration # The time when the job starts running. If the job is interrupted and runs again, the value is updated. attr_accessor :start_time - # The total time the job has been running, including multiple iterations. + # The total time (in seconds) the job has been running, including multiple iterations. # The time isn't reset if the job is interrupted. attr_accessor :total_time