Get CPU speed with TypeScript
Advertisements
import * as os from "os" function getCurrentCPUInfo(): number { return os.cpus()[0].speed }
import * as os from "os" function getCurrentCPUInfo(): number { return os.cpus()[0].speed }