You may write for ten years without being published. You have to be able to stay the course, even when the road is painfully unclear. If you want to write because you dream of a best seller that makes you loads of money, best to become a stock broker. Writing is a bit like playing the lottery. If money is your motivation, go back to school for finance.
Writing takes immense courage.
You are putting your heart and soul on the line, only to have an editor delete it. The novel you wrote last week may be a big hit - in ten years. Or after you die. Or next week. Being a writer is hard, hard work with no guarantees.