Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » report execution time(report execution time)
report execution time [message #1690139] Wed, 25 March 2015 13:12 Go to next message
Ruud Stakenburg is currently offline Ruud StakenburgFriend
Messages: 1
Registered: March 2015
Junior Member
Hi,

I need to show the process time in a BIRT report.
Is there an easy way to make this possible.
The start time of the report is not a problem, but how can I get the end time.
Thanks for any solution.

Regards
Re: report execution time [message #1690214 is a reply to message #1690139] Wed, 25 March 2015 17:17 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

I think if you logged time stamps from the initialize and the afterRender scripts, you'd have a pretty good idea. If you're running from Java, you could capture a timestamp before and after the engine task runs.

Michael

Developer Evangelist, Silanis
Re: report execution time [message #1690366 is a reply to message #1690214] Thu, 26 March 2015 22:13 Go to previous message
donino donino is currently offline donino doninoFriend
Messages: 183
Registered: July 2011
Senior Member
Hi,

For this i think beforeFactory could be better than initialize script to get the startup time, because initialize might be triggered twice (run + render). I achieved something similar:
- in beforeFactory script, set current time in millisec to a global persistent variable
- retrieve the persistent variable in afterRender, and substract it to the new current time in millisec
- log the result to a file from afterRender script

I had also added a step in beforeRender script to get "run" and "render" durations separately.

As far as i remember the tricky part was the value retrieved from a persistent var had to be parsed to be used as a number

[Updated on: Thu, 26 March 2015 22:14]

Report message to a moderator

Previous Topic:working examples pie chart, line chart
Next Topic:Xerox printer driver issue on BIRT server while printing a document
Goto Forum:
  


Current Time: Fri Apr 26 13:33:48 GMT 2024

Powered by FUDForum. Page generated in 0.03372 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top