I trying to get uptime for IIS AppPool, but code always returns zero. Windows system monitor shows real values: screenshot from sysmon
There is my code: