Read the dictionary definition of while. All definitions for this word.
1. a period of indeterminate length (usually short) marked by some action or condition
1. he was here for a little while
2. I need to rest for a piece
3. a spell of good weather
4. a patch of bad weather