Skip to main content
Process.uptime - process - Node documentation
method Process.uptime

Usage in Deno

import { type Process } from "node:process";
Process.uptime(): number

The process.uptime() method returns the number of seconds the current Node.js process has been running.

The return value includes fractions of a second. Use Math.floor() to get whole seconds.

Return Type

number