I want to print the time on the serial monitor at the start and end of a signal (Help)

That's nice. You gave me some ideas, thank you very much