Skip to content

Get system uptime with TypeScript

Advertisements
  
import * as os from "os"

function getSystemUptime(): number {
    return os.uptime()
}
See also  TypeScript code snippet - How does the biological aspect of mountain region depend upon its physical aspect?

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.