Is setInterval CPU intensive?

I don’t think setInterval is inherently going to cause you significant performance problems. I suspect the reputation may come from an earlier era, when CPUs were less powerful. There are ways that you can improve the performance, however, and it’s probably wise to do them: Pass a function to setInterval, rather than a string. Have … Read more

How to read cpu frequency on android device [closed]

To have frequency on Android, just read these special files in /sys directory: #cat “/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq” #cat “/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq” #cat “/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq” You will have current, min and max Frequency allowed.