There is no exact duration. It typically takes a year, but could be more or less.
If your spouse did not have a visa before you were married, it will be difficult to be approved for one now. Spouses are rarely approved as it is assumed they will live in Canada until their PR application is approved.