Skip to main content
Deno.osUptime - Deno documentation
function Deno.osUptime
allow-sys
osUptime(): number
Returns the Operating System uptime in number of seconds. ```ts console.log(Deno.osUptime()); ``` Requires `allow-sys` permission.

Return Type

number