<p>I am running a jobs with a  kubernetes POD  and I need to measure the execution time for each job .</p>

<p>I want to get it  through some api.</p>

<p>Does anyone know how can I get it ?</p>

Gofrane Haj Ahmed
<p>A job has a property denominated <code>status</code> of type <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.10/#jobstatus-v1-batch" rel="nofollow noreferrer">JobStatus</a>. </p>

<p>The properties which you are looking for in the <code>JobStatus</code> type is the <code>startTime</code> and the <code>completionTime</code>, which as the name suggest are responsible for indicating the moment where the job started/completed. The difference between these values is going to lead you to the duration of the execution of the job.</p>
