Due to the informality of the word "time" in this context, a more specific term might be appropriate in a sentence. Here are a few options:
She politely excused herself, mentioning she wasn't feeling well due to her period.
They decided to wait a while before trying for a
baby, as she just recently went through childbirth.
Exercise can help alleviate
cramps during your menstrual cycle.