If I understand correctly, Khal scripts offer exactly this. Works like a charm. You can set total run time, break after x minutes, break after certain levels, stopping after certain run time and the best is you can set a randomization as well for the breaks etc.