Add option to write frametimes to a file