Lines Matching refs:msecs
245 constructor(expiry, msecs) {
250 this.msecs = msecs;
336 const msecs = item._idleTimeout;
337 if (msecs < 0 || msecs === undefined)
340 insert(item, msecs, start);
360 function insert(item, msecs, start = getLibuvNow()) {
362 msecs = MathTrunc(msecs);
366 let list = timerListMap[msecs];
368 debug('no %d list was found in insert, creating a new one', msecs);
369 const expiry = start + msecs;
370 timerListMap[msecs] = list = new TimersList(expiry, msecs);
374 scheduleTimer(msecs);
393 function getTimerDuration(msecs, name) {
394 validateNumber(msecs, name);
395 if (msecs < 0 || !NumberIsFinite(msecs)) {
396 throw new ERR_OUT_OF_RANGE(name, 'a non-negative finite number', msecs);
399 // Ensure that msecs fits into signed int32
400 if (msecs > TIMEOUT_MAX) {
401 process.emitWarning(`${msecs} does not fit into a 32-bit signed integer.` +
407 return msecs;
518 const msecs = list.msecs;
520 debug('timeout callback %d', msecs);
529 if (diff < msecs) {
530 list.expiry = MathMax(timer._idleStart + msecs, now + 1);
533 debug('%d list wait because diff is %d', msecs, diff);
594 debug('%d list empty', msecs);
599 if (list === timerListMap[msecs]) {
600 delete timerListMap[msecs];