403Webshell
Server IP : 66.29.132.122  /  Your IP : 3.133.109.121
Web Server : LiteSpeed
System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : admazpex ( 531)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/proc/self/root/proc/thread-self/root/opt/alt/alt-nodejs19/root/lib/node_modules/npm/node_modules/@npmcli/arborist/bin/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/proc/self/root/proc/thread-self/root/opt/alt/alt-nodejs19/root/lib/node_modules/npm/node_modules/@npmcli/arborist/bin/lib/timers.js
const { bin: options } = require('./options.js')
const log = require('./logging.js')

const timers = new Map()
const finished = new Map()

process.on('time', name => {
  if (timers.has(name)) {
    throw new Error('conflicting timer! ' + name)
  }
  timers.set(name, process.hrtime.bigint())
})

process.on('timeEnd', name => {
  if (!timers.has(name)) {
    throw new Error('timer not started! ' + name)
  }
  const elapsed = Number(process.hrtime.bigint() - timers.get(name))
  timers.delete(name)
  finished.set(name, elapsed)
  if (options.timing) {
    log.info('timeEnd', `${name} ${elapsed / 1e9}s`, log.meta({ force: options.timing === 'always' }))
  }
})

process.on('exit', () => {
  for (const name of timers.keys()) {
    log.error('timeError', 'Dangling timer:', name)
    process.exitCode = 1
  }
})

module.exports = finished

Youez - 2016 - github.com/yon3zu
LinuXploit