It can vary from 2 minutes to 30 minutes. Generally, around 15 minutes, unless you have “issues”, like invalid visa or special visa. Customs can be quick (within 3 minutes if you have nothing to declare) or slow. Generally the immigration process in Frankfurt is rather quick.