I am tracking users' mouse movement and upon receiving mouse movement emitter, I dispatch an event that does it work.
ioHook.on('mousemove', event => {
dispatch(storeLatestWorkTimeStamp())
});
Sometimes the electron app consumes too much CPU more than skype and slack.
I tried setting the max listeners though
ioHook.setMaxListeners(10);
But it's not helping in the consumption of the CPU.
Below is the screenshot of the output of the htop 
The usage varies from 60 to 90. Is there any way to control the CPU usage of ioHook.
Is there any other npm packages that serve the purpose as ioHook.