Think things through thoroughly before you go forward.
If you do decide that divorce is the only option you should proceed with the benefit of legal counsel.
To this end the judge may order the parties to attempt to settle their differences
The time involved is going to vary on a case-by-case basis. However, as a general rule of thumb you could expect to pay somewhere between $1500 and $5000 in legal fees.