I want to write an application for Windows Phone 8 which can display how much time did the phone took to boot every time. Even want to log time taken for last shutdown. Can some one suggest how this can be done in an application. Basically I want to log

Boot time from power button press till the tiled home screen appears.

Also Shutdown time from when user initiates power button shutdown till display goes off.


Please suggest!