Another very simple solution is to put the ref's watch on a digital timer on the scoreboard. Should be dead easy to set up with modern technology. Ref stops play, the scoreboard clock timer stops instantly.
Then the keeper, throw in taker, or player slowly ambling off to be substituted, can...