How to know the time the computer is turned off