Get system uptime with TypeScript
Advertisements
import * as os from "os" function getSystemUptime(): number { return os.uptime() }
import * as os from "os" function getSystemUptime(): number { return os.uptime() }