hard time is a noun meaning "a difficulty that can be overcome with effort". It carries 2 recorded senses.
a difficulty that can be overcome with effort
“we had a hard time getting here”
“analysts predicted rough sledding for handset makers”
a term served in a maximum security prison
Definitions, synonyms and semantic relations for hard time come from Princeton University’s WordNet. Commonness is measured against a corpus of everyday English. Full sources and licences.