NoahScheitler Posted January 22 Share Posted January 22 Good morning everyone, I was just wondering if it would be possible to output the total processing time for a job in the .msg log. I tried adding code to OnJobStart and OnJobEnd to get the current time and then subtract those two values but i just keep getting 0:0:0 every time. Would this be possible even? My javascript knowledge is very limited. I am using fusion pro 7.2P1k btw (yes very old i know but its all i have to work with) Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted January 22 Share Posted January 22 Newer versions already put the total processing time in the log file. I don't even know if I can answer questions about a 13-year-old version of the product. Not only is it long out of support, we don't even have anything to run it on here, so I can't verify anything that I would tell you. Quote Link to comment Share on other sites More sharing options...
DSweet Posted January 23 Share Posted January 23 Bit of a stretch here and I'm also not sure if this was available back in 7.2, but in OnJobStart and OnJobEnd rules could you force a listing into the message/log file using the ReportWarning statement? You could try looking at the copyfit command and see how it is worded and then in OnJobStart force a "Today()" statement into there and then in OnJobEnd force another one. That would give you a start and stop time element for the processing. You would have to do some math to get the actual time, but it would give you something to go by. Hope that helps. . Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted January 23 Share Posted January 23 I suppose you could do this in OnJobStart: startTime = new Date(); And this in OnJobEnd: endTime = new Date(); Print("Composition took " + (endTime.getSeconds() - startTime.getSeconds()) + " seconds."); Quote Link to comment Share on other sites More sharing options...
NoahScheitler Posted January 23 Author Share Posted January 23 That works! Thanks for the suggestions DSweet and Dan. I appreciate it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.