Did you already enter the US with your immigrant visa? if yes, then 6-7 years, just like Triple Citizen said.
Now, if you got your visa but haven't entered the US, get married asap, file a DS-230 for your wife immediately, and try to get her an interview before Sep 30.
However, there is a high risk that your hasty marriage was for the sole purpose of immigration for your wife, and your visa may be revoked.