Whiles is defined in Scotland to mean at times or sometimes.(adverb)
An example of whiles used as an adverb is in the quote by J. H. Newman, "And so on us at whiles it falls, to claim powers that we dread," which means it sometimes falls on us to take control.
Whiles means while or during a certain time.(conjunction)
An example of whiles used as a conjunction is in the sentence, "Father goes to work, whiles mother makes dinner," which means that when father is at work, mother is making dinner.
See whiles in Webster's New World College Dictionary
Origin: ME < while (see while) + adv. gen. -s
See whiles in American Heritage Dictionary 4
Origin: Middle English
Origin: : while, while; see while
Origin: + -es, genitive sing. suff.; see -s3.