As soon as the program starts, get the timestamp using Get Date/Time In Seconds. Store that value somewhere (like in a shift register). You can then get the current time with the same fuction and subtract the timestamp value from the program start. You now know how long the program has been running.
↧