Log time when a script starts

Case number:699969-997331
Topic:General
Opened by:brgreening
Status:Open
Type:Suggestion
Opened on:Thursday, March 27, 2014 - 05:33
Last modified:Thursday, March 27, 2014 - 12:56

One of the development people asked the question "How long was your script running?"

Could you make it so that an entry is made in the log file with a message Script Started, Script Name, Puzzle name.

Perhaps have a message with Script Ended, Script Name, Normal Termination, Crash, Or user hit Cancel.

(Thu, 03/27/2014 - 05:33  |  1 comment)


Joined: 09/24/2012
Groups: Go Science

You could include the following on the beginning of the script:
print(os.clock())

Or you can include the following sequence in the script:
StartTime=os.time()
(...)
print("CPU time=" ..os.time()-StartTime .. "sec.")

Sitemap

Developed by: UW Center for Game Science, UW Institute for Protein Design, Northeastern University, Vanderbilt University Meiler Lab, UC Davis
Supported by: DARPA, NSF, NIH, HHMI, Amazon, Microsoft, Adobe, RosettaCommons