refactor time balancing functionality into separate class from ftscheduler