You need to be separated for at least one year before filing for a divorce in Ontario.  

The most common ground for divorce in Ontario is a one-year separation. This separation period can include living together in the same house as long as the couple is leading separate lives. However, grounds like adultery or cruelty can also be used to apply for divorce without waiting a year.