It is difficult to predict exactly how long it will take an application to mature into a registration, because there are so many factors that can affect the process. Generally, an applicant will receive a filing receipt approximately three weeks after filing, which will include the serial number of the application.
It also depends on the type of trademark your filing, the country where your applying and if it receives any opposition.