Logging processing time of a job

One Star Sam
One Star

Logging processing time of a job

Hi,
I am looking at logging processing info of a job into flat files.
I used tChronometerStart/Stop to measure time taken by my job and it works perfectly fine but is it there a way I can store it in a flat file?
Thanks.
One Star Sam
One Star

Re: Logging processing time of a job

Hi,
I am using tStatCatcher for capturing the log in a flat file.
Thanks
Community Manager

Re: Logging processing time of a job

Hi
There is a global variable ((Long)globalMap.get("tChronometerStop_1_DURATION")) available on tChronometerStop component, this variable counts the duration time between tChronometerStart and tChronometerStop. For example:
tChronometerStart
|
onsubjobok
|
a processing of a subjob
|
onsubjobok
|
tChronometerStop
|
tFixedFlowInput--main--tFileOutputDelimited
on tFixedFlowinput, define a column called duration, and set its value as :
((Long)globalMap.get("tChronometerStop_1_DURATION"))
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star Sam
One Star

Re: Logging processing time of a job

Hi Shong,
Thanks a lot!! I am able to capture processing time Smiley Happy