Question: Sentence 1: The judge leniently granted a sentence with no hard time.
Sentence 2: He is not living at home because he is doing time.
Does time mean the same thing in these two sentences?
============
Answer: the same meaning

Question: Sentence 1: He waited a long time.
Sentence 2: He had a time holding back the tears.
Does time mean the same thing in these two sentences?
============
Answer: different meanings

Question: Sentence 1: Cut a hole.
Sentence 2: The sweat cut little rivulets into her face.
Does cut mean the same thing in these two sentences?
============
Answer:
the same meaning