Add time logging in text file