* Gets the speed of the host's processors. * * If more than one processor is found, the average of their speeds is taken. * * @private * @method processorSpeed * @return {Number} The average processor speed in MHz.
()
| 368 | * @return {Number} The average processor speed in MHz. |
| 369 | */ |
| 370 | processorSpeed() { |
| 371 | const cpus = os.cpus(); |
| 372 | |
| 373 | return cpus.reduce((sum, cpu) => sum + cpu.speed, 0) / cpus.length; |
| 374 | }, |
| 375 | |
| 376 | /** |
| 377 | * Determines the time since the host was started, as from `os.uptime`. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…