Skip to content

Get CPU speed with TypeScript

import * as os from "os"

function getCurrentCPUInfo(): number {
    return os.cpus()[0].speed
See also  TypeScript code snippet - How to check if a variable exists in python?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.