Take a look at this app. It’s called Pool Shot Clock.
If you got it on a tablet I think it would fit the bill.
You can program the length of the shot, length of the extension, the beeps, etc.
To be fully like a tournament you’d need a person to operate it. But you could have the opponent...