Build Step Timings

hi,

I've got a build project broken up into several steps.   many of these steps call other final build projects.   I'm trying to gather timings for each of the major steps.  The end goal is to have these timings written out to an XML file for display on a webpage.  I have an approach but I'm hoping for feedback if there is a better way.

My approach is I'm getting the current date/time when I start and end.   Then using the simple math step to calculate the duration.  Then writting it out to an XML file..  simple enough.  But this approach has several issue mainly because the getdatetime action doesn't support a format that makes the calculation easy.  

I noticed there is a "run time" value in the build log.   Is there a way to to retieve that value?   any other solutions I don't know about?

Thanks in advance.

 

 

Hi Chad,

You can either use the 'Export Log to File' action to log a fragment of the build to an XML file and parse it to retrieve the runtime of the action, or you can use script to create a stopwatch around the actions. I've attached an example project which demonstrates using script to create a stopwatch.

Regards,
Paul.

001_StopwatchExample.fbz6 (2.229 KB)