qsu
Version:
qsu is a utility library that contains useful and frequently used functions. Start with your preferred language and the modern development environment.
1 lines • 171 B
JavaScript
import{numberFormat as o}from"../../format/numberFormat.js";export function getUptime(r){let t=process?.uptime();return t?(r?.floor&&(t=Math.floor(t)),r?.format?o(t):t):0}