# File lib/travis/client/job.rb, line 40 def duration attributes['duration'] ||= begin start = started_at || Time.now finish = finished_at || Time.now (finish - start).to_i end end