MSI Afterburner is capable of writing frametime logs. It saves log in .hml file formatted somehow similar to CSV. Frametime goes as last column in the file. It should be relatively easily to implement processing frametimes from that log format.
LogExample.hml.txt