Create a log of render times per frame

Hey everyone,
I'm trying to write (what should be) a simple script that stores the data from the rendering dialog to a .txt file. I want to be able to extract the values for last frame time, frame number, and maybe some others, but I can't find a way to access those values. Can that be done in maxscript or python? If so, how?