Implement a function that stops the simulation when the average resource usage stabilises, given certain resource(s) to watch and some tolerance.
Implement a function that stops the simulation when the average resource usage stabilises, given certain resource(s) to watch and some tolerance.