'Whilst' is an adverbial genitive. This means it is used to describe verbs.
For an example of where it's used, in English English at least, 'Whilst rising, the sun shone'.
Not used as 'Whilst the sun was rising, it shone'. 'While' would be used instead here.
In writing, I always use whilst,...