handle unavailability of resource module on windows

ResourceLogger would need `psutils` on windows. Would log elapsed time only otherwise.