Usually most all effects of a general anesthetic
resolve in minutes of surgery.
There can be some longer side effects of tiredness or groggy feeling. But your ability to breathe normally resolves nearly immediately. Longer surgery times with longer anesthetics can take a little more time to recover, but not much more. This also depends on if you have any underlying medical or lung conditions.