Recovery time completely depends on which part of your oral cavity was affected and upto what extent cancer was spread in that part.
After surgery you may have to spend a few days at the hospital. It will take several weeks to feel better after leaving the hospital. After leaving hospital you will most likely need special care at home to get complete recovery.