Hey
This is a intresting challenge and idea I like it ,
How much time can you alot to it? is it posisble to keep a timer for how long each element has been run ?
I might go in the direction of making a array of timers and then sorting the timers and using x amount from the unused side
Cheers