Added 'timed_tests.sh' script to help investigate the cause of hanging tests.

Review: https://reviews.apache.org/r/23700