I'd like to get the exact time when windows was shut down and booted.
In c++ I'd simply use GetTickCount64
which retrieves the number of milliseconds that have elapsed since the system was started (thus obtaining the time by difference), but I don't know if there is an equivalent function for python and, if possible, I'd like to avoid to write a c++ module.
For last shutdown time I have no idea...maybe there is some log somewhere in windows? I tried to read the event log using win32evtlog
library, but it gives me just an event and is about the dns..
edit: Ok, maybe I got a step further: I used win32evtlog, in particular calling ReadEvent log more times it gives me all logs till it returns null. Now, I need a way to understand what ids are about boot/shutdown..