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

Tested. Here's a complete program in the wokwi simulator, my new favorite toy, easier than dragon an Arduino to the beach.

Misnamed right now. :expressionless:

a7