I would use 'while' to mean 'during the time', and 'whilst' to mean 'whereas'.
But beware, I have heard that in some parts of England 'while' is understood to mean 'until', causing problems when motorists come to a railway crossing and see a sign saying 'DO NOT CROSS WHILE LIGHTS ARE FLASHING'.