/third_party/node/deps/npm/test/lib/utils/ |
D | timers.js | 12 const timers = new Timers(options) constant 13 t.teardown(() => timers.off()) 14 return { timers, logs } 18 const { timers } = mockTimers(t) 19 t.match(timers.unfinished, new Map()) 20 t.match(timers.finished, {}) 24 const { timers } = mockTimers(t) 28 t.match(timers.unfinished, new Map([['foo', Number]])) 29 t.match(timers.finished, { bar: Number }) 30 timers.off() [all …]
|
/third_party/node/test/parallel/ |
D | test-timers-unref-remove-other-unref-timers-only-one-fires.js | 14 const timers = require('timers'); constant 22 timers.unenroll(bar); 29 timers.unenroll(foo); 33 timers.enroll(bar, 1); 34 timers._unrefActive(bar); 36 timers.enroll(foo, 1); 37 timers._unrefActive(foo);
|
D | test-timers-api-refs.js | 3 const timers = require('timers'); constant 14 const timeoutCallback = () => { timers.clearTimeout(timeout); }; 15 const timeout = timers.setTimeout(common.mustCall(timeoutCallback), 1); 17 const intervalCallback = () => { timers.clearInterval(interval); }; 18 const interval = timers.setInterval(common.mustCall(intervalCallback), 1); 20 const immediateCallback = () => { timers.clearImmediate(immediate); }; 21 const immediate = timers.setImmediate(immediateCallback);
|
D | test-timers-unref-remove-other-unref-timers.js | 8 const timers = require('timers'); constant 16 timers.unenroll(foo); 23 timers.enroll(bar, 1); 24 timers._unrefActive(bar); 26 timers.enroll(foo, 50); 27 timers._unrefActive(foo);
|
D | test-timers-unref-active.js | 17 const timers = require('timers'); constant 32 timers.unenroll(someObject); 33 timers.enroll(someObject, 1); 38 if (nbTimeouts === N) timers.unenroll(someObject); 40 timers._unrefActive(someObject); 43 timers._unrefActive(someObject);
|
D | test-timers-enroll-second-time.js | 6 const timers = require('timers'); constant 12 timers.enroll(enrollObj, 1); 14 timers.enroll(enrollObj, 10); 16 timers.active(enrollObj);
|
D | test-timers-max-duration-warning.js | 5 const timers = require('timers'); constant 39 timers.enroll(timer, OVERFLOW); 40 timers.active(timer); 41 timers.unenroll(timer);
|
D | test-util-promisify-custom-names.mjs | 11 import timers from 'node:timers'; 34 promisify(timers.setImmediate).name, 38 promisify(timers.setTimeout).name,
|
D | test-timers-enroll-invalid-msecs.js | 5 const timers = require('timers'); constant 15 () => timers.enroll({}, val), 29 () => timers.enroll({}, val),
|
D | test-timers-unenroll-unref-interval.js | 4 const timers = require('timers'); constant 20 timers.unenroll(interval);
|
D | test-runner-concurrency.js | 10 const timers = require('node:timers/promises'); constant 49 await timers.setImmediate();
|
/third_party/libuv/test/ |
D | benchmark-million-timers.c | 42 uv_timer_t* timers; in BENCHMARK_IMPL() local 51 timers = malloc(NUM_TIMERS * sizeof(timers[0])); in BENCHMARK_IMPL() 52 ASSERT_NOT_NULL(timers); in BENCHMARK_IMPL() 60 ASSERT(0 == uv_timer_init(loop, timers + i)); in BENCHMARK_IMPL() 61 ASSERT(0 == uv_timer_start(timers + i, timer_cb, timeout, 0)); in BENCHMARK_IMPL() 69 uv_close((uv_handle_t*) (timers + i), close_cb); in BENCHMARK_IMPL() 76 free(timers); in BENCHMARK_IMPL()
|
/third_party/node/deps/npm/node_modules/@npmcli/arborist/bin/lib/ |
D | timers.js | 4 const timers = new Map() constant 8 if (timers.has(name)) { 11 timers.set(name, process.hrtime.bigint()) 15 if (!timers.has(name)) { 18 const elapsed = Number(process.hrtime.bigint() - timers.get(name)) 19 timers.delete(name) 27 for (const name of timers.keys()) {
|
/third_party/gstreamer/gstplugins_good/gst/rtpmanager/ |
D | rtptimerqueue.c | 31 GQueue timers; member 180 return (RtpTimer *) queue->timers.tail; in rtp_timer_queue_get_tail() 186 queue->timers.tail = (GList *) timer; in rtp_timer_queue_set_tail() 187 g_assert (queue->timers.tail->next == NULL); in rtp_timer_queue_set_tail() 193 return (RtpTimer *) queue->timers.head; in rtp_timer_queue_get_head() 199 queue->timers.head = (GList *) timer; in rtp_timer_queue_set_head() 200 g_assert (queue->timers.head->prev == NULL); in rtp_timer_queue_set_head() 217 queue->timers.length++; in rtp_timer_queue_insert_before() 234 queue->timers.length++; in rtp_timer_queue_insert_after() 258 g_queue_push_head_link (&queue->timers, (GList *) timer); in rtp_timer_queue_insert_tail() [all …]
|
/third_party/ltp/testcases/open_posix_testsuite/stress/timers/ |
D | plan.txt | 13 - Repetition of key clocks/timers functions. 16 - Behavior of normal functions under heavy timers usage. 20 API testing of the clocks/timers functions is considered to be done by 42 - Set memory to 95% and run through key timers functions. 47 - Set CPU to 95% and run through key timers functions. 51 - Set up >10,000 timers and run through key clocks functions. 52 - Set up >10,000 timers and run through key timers functions.
|
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/ |
D | IceTimerTree.cpp | 36 if (!BuildDefs::timers()) in TimerStack() 53 if (!BuildDefs::timers()) in getTimerID() 80 if (!BuildDefs::timers()) in mergeFrom() 150 if (!BuildDefs::timers()) in push() 161 if (!BuildDefs::timers()) in pop() 178 if (!BuildDefs::timers()) in update() 214 if (!BuildDefs::timers()) in reset() 236 if (!BuildDefs::timers()) in dumpHelper() 265 if (!BuildDefs::timers()) in dump()
|
D | IceGlobalContext.h | 130 if (!BuildDefs::timers()) in initInto() 138 if (!BuildDefs::timers()) in mergeFrom() 580 if (BuildDefs::timers()) in ID() 587 if (BuildDefs::timers()) in ID() 593 if (BuildDefs::timers()) in TimerMarker() 598 if (BuildDefs::timers() && Active) in ~TimerMarker()
|
/third_party/ltp/testcases/open_posix_testsuite/functional/timers/ |
D | plan.txt | 15 timers - The following types of timers will be tested. 24 API testing of the clocks/timers functions is considered to be done by 40 generated test scenarios setting clocks or timers to these critical 68 - Mimic the non-repeating timers tests as they apply to sleep. 76 are absolute timers only. 79 - [Relative only] Set up multiple timers to expire after the same duration 85 - Set two timers to expire at the same time, different events, in the 87 - Set up two timers to expire for the same time in two different processes. 92 - Perform all non-repeating timer tests on repeating timers. 96 - Have multiple timers in a process blocked and ensure overrun count
|
/third_party/node/deps/npm/lib/ |
D | npm.js | 54 #timers = new Timers({ field in Npm 157 this.#timers.off() 163 return this.#timers.time(name, fn) 167 this.#timers.writeFile({ 267 this.#timers.load({ 338 return this.#timers.unfinished 342 return this.#timers.finished 346 return this.#timers.started 362 return this.#timers.file
|
/third_party/node/lib/internal/bootstrap/ |
D | browser.js | 63 const timers = require('timers'); constant 64 defineOperation(globalThis, 'clearInterval', timers.clearInterval); 65 defineOperation(globalThis, 'clearTimeout', timers.clearTimeout); 66 defineOperation(globalThis, 'setInterval', timers.setInterval); 67 defineOperation(globalThis, 'setTimeout', timers.setTimeout);
|
/third_party/node/doc/api/ |
D | timers.md | 7 <!-- source_link=lib/timers.js --> 11 globals, there is no need to call `require('node:timers')` to use the API. 13 The timer functions within Node.js implement a similar API as the timers API 180 ## Scheduling timers 279 ## Cancelling timers 282 each return objects that represent the scheduled timers. These can be used to 292 const { setImmediate: setImmediatePromise } = require('node:timers/promises'); 310 const { setTimeout: setTimeoutPromise } = require('node:timers/promises'); 368 The `timers/promises` API provides an alternative set of timer functions 370 `require('node:timers/promises')`. [all …]
|
D | globals.md | 298 [`clearImmediate`][] is described in the [timers][] section. 308 [`clearInterval`][] is described in the [timers][] section. 318 [`clearTimeout`][] is described in the [timers][] section. 706 [`setImmediate`][] is described in the [timers][] section. 716 [`setInterval`][] is described in the [timers][] section. 726 [`setTimeout`][] is described in the [timers][] section. 924 [`clearImmediate`]: timers.md#clearimmediateimmediate 925 [`clearInterval`]: timers.md#clearintervaltimeout 926 [`clearTimeout`]: timers.md#cleartimeouttimeout 936 [`setImmediate`]: timers.md#setimmediatecallback-args [all …]
|
/third_party/ltp/testcases/open_posix_testsuite/Documentation/ |
D | COVERAGE.timers | 8 This document lists the items that will be tested for POSIX timers. 49 /usr/src/linux/Documentation/high-res-timers/lib/posix_time.h 57 - Absolute timers and clock changes: 73 High Res Timers - http://high-res-timers.sourceforge.net 74 Alternate High Res Timers - http://high-res-timers.sourceforge.net (look
|
/third_party/node/deps/npm/node_modules/@npmcli/arborist/bin/ |
D | index.js | 70 const timers = require('./lib/timers') constant 83 seconds: `${timers.get(scriptTime) / 1e9}s`, 84 ms: `${timers.get(scriptTime) / 1e6}ms`,
|
/third_party/node/test/message/ |
D | timeout_throw.out | 6 at listOnTimeout (node:internal/timers:*:*) 7 at process.processTimers (node:internal/timers:*:*)
|