It depends from trader to trader. Some traders are able to make profit within a year while some take years. I started making consistent profits after 2 years.
Keep one thing clear in your mind - Losses are a part of a trader's life. Some or the other day, you have to face them. So, it’s always better not to get affected by your bad trades and keep working to make your future trades better.