Portal | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
gylbharat

Active Member

Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

Posted: Tue Jan 17, 2012 1:58 pm    Post subject: CPU TIME to REAL TIME (Clock Time)

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

Senior Member

Joined: 14 Mar 2007
Posts: 10701
Location: italy

 Posted: Tue Jan 17, 2012 2:22 pm    Post subject: Reply to: CPU TIME to REAL TIME (Clock Time) 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    Post subject: 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: 7312
Location: Inside the Matrix

 Posted: Tue Jan 17, 2012 3:09 pm    Post subject: Reply to: CPU TIME to REAL TIME (Clock Time) 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: 1091
Location: Dublin, Ireland

Posted: Tue Jan 17, 2012 3:13 pm    Post subject:

 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    Post subject:

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: 7312
Location: Inside the Matrix

 Posted: Tue Jan 17, 2012 3:26 pm    Post subject: Reply to: CPU TIME to REAL TIME (Clock Time) 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: 1091
Location: Dublin, Ireland

 Posted: Tue Jan 17, 2012 3:28 pm    Post subject: 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    Post subject: 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    Post subject: Can you show me how to convert 1.89 to seconds?
Garry Carroll

Senior Member

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

Posted: Tue Jan 17, 2012 3:38 pm    Post subject:

 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    Post subject: Thanks Garry... Was getting confused
Anuj Dhawan

Senior Member

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

 Posted: Tue Jan 17, 2012 3:49 pm    Post subject: 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: 8567
Location: Dubuque, Iowa, USA