I would prefer using "writing" than "doing" (tough will remain the same)
If you want to refer something that happened in the past, you could say...
I had a tough time writing those\the exams.("these" can be used if you are talking about the subject having in front of you to show it to your friend)
- For Teachers