When an invoice is created through a project, the time tracked (if recorded) will automatically populate on the invoice. You will also have the option to enter the time into the invoice manually.
You can find detailed information in this video.