how to check the start and stop time of the machine being idle in c and linux?
how to check the start and stop time of the machine being idle in c and linux?
I want to schedule a job for idle router and so i want to detect whether my router is idle or not, what are the characteristics of an idle machine and how to check the start and stop time of the machine being idle in c ?i have already tried /proc/cpuusage top and meminfo , i still couldnt get the solution
no it didnt work and that doesnt match my requirement
– Swetha Ravichander
Jul 3 at 9:04
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
have you tried this one: github.com/gpolitis/xidle
– zero3nna
Jul 3 at 8:07