One way to do this would be to configure your firewall with time restrictions that only allow the ports used by the miners to pass through the firewall at certain times. This assumes that you have a firewall that has that ability (the one that I use can do this).