You can get a provisional patent while you work on your invention prior to filing for a regular patent. A provisional patent application reserves your priority of invention for 12 months.