Indefinite time periods are always relative. In your example, "a while" is probably somewhere between a few days and a few months. But "a while" can mean anywhere from a few minutes to a much longer time period. For example, if you're talking about geology or evolution, "a while" could be millions of years.