Verb
have a time of it (third-person singular simple present has a time of it, present participle having a time of it, simple past and past participle had a time of it) To go through a painful or difficult experience.