Hi! 1) Read the global variable mom_machine_time inside tcl procedure of Post Builder on the event of Program End. According help, it contains "The total machine time. Includes cutting, non-cutting and other additional times such as tool change time." 2) Take into consideration, that it is estimated machine time and may differ from the real time on machine.
There are mom variables for each operation so that you can determine total time, cutting time, and non-cutting time - like you see in the Operation Navigator. If you want to get more detailed, such as approach, engage, retract, departure, stepover, etc, then you would need to do that yourself. Basically, you need to sum mom_event_time for each motion type.