Six months to a year before you stop making basic mistakes maybe? After that, depending on the type of project you might spend the rest of your PhD mastering a few core techniques or you might be trying new things every month. If the latter, you can expect to always feel like you don't know what you're doing.