have a time of it

Verb

 * 1)  To undergo a painful or difficult experience.