Skip to main content
function Deno.osUptime
allow-sys

Returns the Operating System uptime in number of seconds.

console.log(Deno.osUptime());

Requires allow-sys permission.

Returns

number