If by continuous signal you just mean a pin changing from low to high and then back to low later (or high to low and back to high) you could probably draw on the approach taken in the state change detect example at file / examples / 2 digital in the ide. Just get it first to recognise those changes and report in the ide "start of signal" and "end of signal".