added code to test avg time result