If your initial screen check was okay, then it would not take long like within a few weeks up to a month. But if the official found something suspicious then security screening could be initiated. If it's the case, the security process will take some time like a few months or a year. According to some threads I read, it seems there are some factors like your name, nationality, occupation and travel history.