Hi to all TW scripters,
I would like to generate a timer to know how long my script is running.
Code:
SETVAR $STEP1 TIME
SETVAR $STEP11 TIME
SETVAR $TotalTime $STEP11
SUBTRACT $TotalTime $STEP1
ECHO $TotalTime
I tried that but, I got an error : Script run-time error in 'SO_STARWARSMOD_MAIN(B-5).TS': '13:22:51' is not a decimal number, line 139
So I know that my subtract command is my line 139 and that it's the problem of it's not a decimal number...
So there is a command that I can use to count the time between the start time for my script ($STEP1) and my final time ($STEP11)
?? Each of my step is written in a Text file and give me the time of starting and ending of each step. But I would be able to have the total time of my running script without count it myself.
Thanks you. It's my last problem with my big script that generate my SW edit.