Exporting statement times using Python API

Hi,

What would be the most straightforward approach for exporting all the statement times for a given routine to an external text file (see sample highlighted in red below)?

Any code snippets or ideas would be greatly appreciated - thanks!

Sample