Skip to main content
uptime - os - Node documentation
function uptime

Usage in Deno

import { uptime } from "node:os";
uptime(): number

Returns the system uptime in number of seconds.

Return Type

number