Skip to content

Commit

Permalink
Clarify that the total_time is in seconds
Browse files Browse the repository at this point in the history
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) 
```
  • Loading branch information
ignacio-chiazzo authored Aug 1, 2024
1 parent ae5828f commit a4e88c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/job-iteration/iteration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a4e88c2

Please sign in to comment.