← Back to index
function Deno.osUptime

Returns the Operating System uptime in number of seconds.

console.log(Deno.osUptime());

Requires allow-sys permission.