WriteTimeOutput function

Write a 'timeXXXX.txt' file