Hello, i am now in a study/research about using multichain for IoT, and i need to know how to know the CPU usage ( maybe in percentage or anything) while mining process happened
because IoT device have a limit in resource and my focus is the relation of changing the value of mining-diversity with the CPU usage and mining time
Actually I have tried it using Python, by recording the usage of CPU using psutil library while always checking the confirmation field If the value is 0, it has not yet been mined (as explained in
https://www.multichain.com/qa/11525/how-do-transactions-work-in-a-data-stream)
so if the value isn't 0, then it has been mined and the recording process will stop.
but i don't think that is the right way to do it, I would appreciate if there is a more appropriate way to do it
many thanks.