What is the difference between hardly and nearly?

Hardly means with difficulty but nearly means close by or about to finish.