Anesthesiology technology and drugs are very advanced now. Patients with normal general conditions will wake up in about 5 minutes after general anesthesia. But it may take longer to be fully awake and normal.
Being completely unconscious during the operation is like sleeping for the patient.