I don’t believe that pray is a waste of valuable time. Once we go that route, it’s over.
It depends upon the circumstances. If your goal is to teach children math, science, history, etc. in a finite schoolday, then prayer is a waste of valuable time.
(insert obvious joke about praying before a test)