Log time when a script starts

Started by brgreening

brgreening Lv 1

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.

Bruno Kestemont Lv 1

You could include the following on the beginning of the script:

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