A patent typically takes two to three years to obtain (although it can take longer) and the fees for obtaining one can mount into the many thousands of dollars, depending on your invention and what you are trying to protect. If you're going to spend the money to get a patent (which lasts 21 years), do it right -- don't do it yourself (unless, perhaps, you are a patent attorney).
Speak to an attorney who specializes in patent law to get clear on the process, the preliminary searches and investigation you may want to undertake, the costs and fees involved, and the extent to which you have the capitalization to really market the product once you have the patent.
Nina L. Kaufman, Esq. is an award-winning New York City attorney, edutainer and author. Under her Ask The Business Lawyer brand, she reaches thousands of entrepreneurs and small business owners with her legal services, professional speaking, information products, and LexAppeal weekly ezine. She also writes the Making It Legal blog.