Elapsed Time of Process

Post Reply
ellissj3
Posts: 54
Joined: Tue Jun 15, 2010 1:43 pm
OLAP Product: Cognos TM1
Version: 9.0 - 10.2
Excel Version: 2010

Elapsed Time of Process

Post by ellissj3 »

Hello,

I have been trying to create the elapsed time in seconds that it would take an existing process to complete running (namely an overnight process). I know this is calculated within the Message Log, but I would like to put this in a control cube. Any Ideas on how to accomplish this within a process?

Thank you!
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Elapsed Time of Process

Post by tomok »

Are you saying you want to record how long it takes to run a process and store that value in a control cube? It would be easier to record the start and stop times in the control cube and then calculate the elapsed time via a rule in the control cube. Just CellPutN the value from the NOW() function into the starting time cell in control cube on the Prolog tab and then CellPutN the NOW() value in the ending time cell on the Epilog tab. I'll let you take a stab at writing the rule. Hint: Subtract the two dates and then use TIMST function to format as desired.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
User avatar
qml
MVP
Posts: 1097
Joined: Mon Feb 01, 2010 1:01 pm
OLAP Product: TM1 / Planning Analytics
Version: 2.0.9 and all previous
Excel Version: 2007 - 2016
Location: London, UK, Europe

Re: Elapsed Time of Process

Post by qml »

At the beginning of Prolog add this line:

Code: Select all

nStartTime = NOW;
At the end of Epilog add this line:

Code: Select all

nElapsedSeconds = ROUND ((NOW - nStartTime) / 0.000011574074074074);
Then just write nElapsedSeconds to a cube and you're done. It will give you the execution time rounded to full seconds.
Kamil Arendt
Post Reply