If you don't want to wait for the time to expire, you can enter:

sudo -k

That doesn't require a password, and in fact can be run by users not ordinarily authorized to run sudo. It immediately revokes any temporary credentials, so a password will be requested on the next use of sudo.