Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Node.js get cpus

const os = require('os');
os.cpus()
/* 
[
  {
    model: 'Intel(R) Core(TM) i7 CPU         860  @ 2.80GHz',
    speed: 2926,
    times: {
      user: 252020,
      nice: 0,
      sys: 30340,
      idle: 1070356870,
      irq: 0
    }
  },
  ...
]
*/
 
PREVIOUS NEXT
Tagged: #cpus
ADD COMMENT
Topic
Name
3+7 =