How to count how many seconds an output is on?

Hello, I’d like to record how many seconds an output is on and then send the result to the monoflop time pin.
someone can help me please?

Use Stopwatch to measure how long something is on.