Clock keep running while offense is substituting ask the way until they are lined up and ready to go. Then stop the clock while the defense does their substitution.
Letting the defense watch the offense substitute and do nothing for a while, then substitute way after the offense and also substitute really slowly (guys obviously intentionally taking their sweet time) is stupid and unfair.