Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /usr/share/nodejs/@npmcli/arborist/bin/lib/ drwxr-xr-x | |
| Viewing file: Select action/file-type: const timers = Object.create(null)
const { format } = require('util')
const options = require('./options.js')
process.on('time', name => {
if (timers[name]) {
throw new Error('conflicting timer! ' + name)
}
timers[name] = process.hrtime()
})
const dim = process.stderr.isTTY ? msg => `\x1B[2m${msg}\x1B[22m` : m => m
const red = process.stderr.isTTY ? msg => `\x1B[31m${msg}\x1B[39m` : m => m
process.on('timeEnd', name => {
if (!timers[name]) {
throw new Error('timer not started! ' + name)
}
const res = process.hrtime(timers[name])
delete timers[name]
const msg = format(`${process.pid} ${name}`, res[0] * 1e3 + res[1] / 1e6)
if (options.timers !== false) {
console.error(dim(msg))
}
})
process.on('exit', () => {
for (const name of Object.keys(timers)) {
console.error(red('Dangling timer:'), name)
process.exitCode = 1
}
})
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0034 ]-- |