Typical timeframe
There is no single answer, because the length of a trademark registration depends largely on the country or office where you file. In most cases, you can expect the process to take a few months, counting from the day you submit your application until the registration certificate is issued.
What affects the timing
Along the way, your application goes through an examination, is published, and may be challenged by a third party through an opposition. Each of these stages can add to the overall waiting time.