computing total time for children tree is now more efficient