Basically it depends on the state where you live.
For example for Judicial foreclosures (Illinois for example)
it may take up to 7-8 months for the whole process to go through vs Non-Judicial where the process is much shorter.
Also talking for Illinois as example,
the actual eviction may take a while also,
especially in Chicago area.
Get e better feel on how this work by visiting the court house and open your file to see the redemption date
Usually around this date there will be Auction date scheduled.
I hope this answer will helps you a lot.