Measure time it takes to all kubernetes pods to transition to running phase

I’m wondering if there exists any method to measure time for all kubernetes pods to transition from,say, pending(or any other phase, besides running) to running.