# CPU TIME to REAL TIME (Clock Time)

Author Message
gylbharat

Active Member

Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

Posted: Tue Jan 17, 2012 1:58 pm

Hi,

I wanted to know how can we convert "TOT CPU TIME" in a JCL execution log to Real time.

Example - JCL log shows

 Code: TOT CPU TIME=  1.89 TOT ELAPSED TIME= 19.12

So How much TOT CPU TIME 1.89 = ? (Actual clock time)
enrico-sorichetti

Superior Member

Joined: 14 Mar 2007
Posts: 10833
Location: italy

 Posted: Tue Jan 17, 2012 2:22 pm the CPU time is the time that the CPU was busy executing Your instructions it is completely unrelated to the REAL (clock) time ELAPSED TIME = CPU TIME + WAIT TIME (*) nothing more, nothing less (*) true only for strictly single thread/task processes zOS will anyway under the covers carry on some multitasking so sometimes the elapsed might be less than the
gylbharat

Active Member

Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

 Posted: Tue Jan 17, 2012 2:49 pm Thanks Enrico... I want to know... That in this case Example CPU TIME = 1.89, which means 1 Minute and 89 seconds. (This is on scale of 100) But actually seconds should be <= 59. So how can we convert 1.89 to clock time.
Bill Woodger

Moderator Emeritus

Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

 Posted: Tue Jan 17, 2012 3:09 pm 1.89 * 60 = number of seconds divide number of seconds by 60, which gives minutes, and the remainder is the number of seconds that have not reached to the next minute. Another way to look at it is 0.89 * 60. Result from any of these will always be < 60. I may be misunderstanding something about what you are asking.
Garry Carroll

Senior Member

Joined: 08 May 2006
Posts: 1175
Location: Dublin, Ireland

Posted: Tue Jan 17, 2012 3:13 pm

 gylbharat wrote: Thanks Enrico... I want to know... That in this case Example CPU TIME = 1.89, which means 1 Minute and 89 seconds. (This is on scale of 100) But actually seconds should be <= 59. So how can we convert 1.89 to clock time.

It doesn't mean 89sec, it means 0.89 of a minute or (60s * 0.89) = 53.4 sec

Garry.
gylbharat

Active Member

Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

Posted: Tue Jan 17, 2012 3:17 pm

Garry Carroll wrote:
 gylbharat wrote: Thanks Enrico... I want to know... That in this case Example CPU TIME = 1.89, which means 1 Minute and 89 seconds. (This is on scale of 100) But actually seconds should be <= 59. So how can we convert 1.89 to clock time.

It doesn't mean 89sec, it means 0.89 of a minute or (60s * 0.89) = 53.4 sec

Garry.

So total CPU TIME is 1 Minute and 53.4 Sec ?

As this 1 is also on scale of 100. Dont we have to convert it to Sec?
Bill Woodger

Moderator Emeritus

Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

 Posted: Tue Jan 17, 2012 3:26 pm A minute is 60 seconds. 1/100th of a minute is 0.6 seconds. If you want the CPU time in seconds, you have to convert it.
Garry Carroll

Senior Member

Joined: 08 May 2006
Posts: 1175
Location: Dublin, Ireland

 Posted: Tue Jan 17, 2012 3:28 pm As Bill suggests - I may be misunderstanding something about what you are asking. Where are you getting the CPU time figure? and the reference that it's on a scale of 100? Garry.
gylbharat

Active Member

Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

 Posted: Tue Jan 17, 2012 3:30 pm I am getting from the JCL output.
gylbharat

Active Member

Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

 Posted: Tue Jan 17, 2012 3:34 pm Can you show me how to convert 1.89 to seconds?
Garry Carroll

Senior Member

Joined: 08 May 2006
Posts: 1175
Location: Dublin, Ireland

Posted: Tue Jan 17, 2012 3:38 pm

 gylbharat wrote: Can you show me how to convert 1.89 to seconds?

seconds = (1.89 * 60) = 113.4s

Garry.
gylbharat

Active Member

Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

 Posted: Tue Jan 17, 2012 3:46 pm Thanks Garry... Was getting confused
Anuj Dhawan

Superior Member

Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

 Posted: Tue Jan 17, 2012 3:49 pm Half-a-minute or 0.5 minutes (note, I did not say 0.30 minutes) or 30 seconds (0.5 x 60 seconds = 30.0 seconds) -- just differnt way of saying the same thing. As they say, a rose by any other name... .
Robert Sample

Global Moderator

Joined: 06 Jun 2008
Posts: 8651
Location: Dubuque, Iowa, USA