Home
last modified time | relevance | path

Searched refs:ticks (Results 1 - 25 of 99) sorted by relevance

1234

/third_party/libuv/test/
H A Dbenchmark-loop-count.c31 static unsigned long ticks; variable
37 if (++ticks == NUM_TICKS) in idle_cb()
42 int ticks = 0; in idle_alive_cb() local
44 while (++ticks < NUM_TICKS2) { in idle_alive_cb()
50 *(int*)handle->data = ticks; in idle_alive_cb()
56 ticks++; in idle2_cb()
77 ASSERT_UINT64_EQ(ticks, NUM_TICKS); in BENCHMARK_IMPL()
79 fprintf(stderr, "loop_count: %d ticks in %.2fs (%.0f/s)\n", in BENCHMARK_IMPL()
101 fprintf(stderr, "loop_count: %lu ticks (%.0f ticks/ in BENCHMARK_IMPL()
113 int ticks = 0; BENCHMARK_IMPL() local
[all...]
H A Dtest-tcp-oob.c36 static int ticks; variable
48 if (++ticks < kMaxTicks) in idle_cb()
136 ASSERT_EQ(ticks, kMaxTicks); in TEST_IMPL()
H A Dtest-tcp-unexpected-read.c33 static unsigned long ticks; /* event loop ticks */ variable
37 ticks++; in check_cb()
113 ASSERT_LE(ticks, 20); in TEST_IMPL()
/third_party/libdrm/tests/ttmtest/src/
H A Dttmtest.c170 unsigned long *ticks) in benchmarkBuffer()
186 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer()
192 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer()
197 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer()
202 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer()
207 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer()
212 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer()
224 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer()
230 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer()
235 *ticks in benchmarkBuffer()
169 benchmarkBuffer(TinyDRIContext * ctx, unsigned long size, unsigned long *ticks) benchmarkBuffer() argument
307 unsigned long ticks[128], *pTicks; testAGP() local
[all...]
/third_party/node/deps/v8/tools/profview/
H A Dprofile-utils.js124 // We store list of ticks and positions within the ticks stack by
126 // Triplet { 123, 2, 3 } encodes positions in ticks 123, 124, 125,
162 // If we are doing top-down call tree, update own ticks.
169 let stack = file.ticks[stackIndex].s;
177 let vmState = file.ticks[stackIndex].vm;
182 child.ticks++;
198 let stack = file.ticks[stackIndex].s;
215 ticks : 0
226 this.tree.ticks
[all...]
H A Dprofview.js459 if (c1.ticks < c2.ticks) return 1;
460 else if (c1.ticks > c2.ticks) return -1;
467 return c2.ticks - c1.ticks;
471 if (c1.type === c2.type) return c2.ticks - c1.ticks;
501 // Collect the children, and sort them by ticks.
507 if (child.ticks >
[all...]
/third_party/node/test/tick-processor/
H A Dtick-processor-base.js23 let ticks = '';
24 proc.stdout.on('data', (chunk) => ticks += chunk);
28 match(test.pattern, proc, () => ticks, test.profProcessFlags);
32 function match(pattern, parent, ticks, flags = []) {
33 // Store current ticks log
34 fs.writeFileSync(LOG_FILE, ticks());
54 return setTimeout(() => match(pattern, parent, ticks), RETRY_TIMEOUT);
H A Dtest-tick-processor-polyfill-brokenfile.js42 let ticks = '';
43 proc.stdout.on('data', (chunk) => ticks += chunk);
60 setTimeout(() => runPolyfill(ticks), RETRY_TIMEOUT);
/third_party/python/Lib/sqlite3/
H A Ddbapi2.py39 def DateFromTicks(ticks):
40 return Date(*time.localtime(ticks)[:3])
42 def TimeFromTicks(ticks):
43 return Time(*time.localtime(ticks)[3:6])
45 def TimestampFromTicks(ticks):
46 return Timestamp(*time.localtime(ticks)[:6])
/third_party/mesa3d/src/c11/impl/
H A Dtime.c54 LONGLONG ticks; in timespec_get() local
59 ticks = (LONGLONG)(date.QuadPart - _TIMESPEC_IMPL_UNIX_EPOCH_IN_TICKS); in timespec_get()
60 ts->tv_sec = ticks / _TIMESPEC_IMPL_TICKS_PER_SECONDS; in timespec_get()
61 ts->tv_nsec = (ticks % _TIMESPEC_IMPL_TICKS_PER_SECONDS) * 100; in timespec_get()
/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
H A DDurationPartial.cs81 /// <remarks>If the duration is not a precise number of ticks, it is truncated towards 0.</remarks>
93 long ticks = Seconds * TimeSpan.TicksPerSecond + Nanos / NanosecondsPerTick; in ToTimeSpan()
94 return TimeSpan.FromTicks(ticks); in ToTimeSpan()
107 long ticks = timeSpan.Ticks; in FromTimeSpan()
108 long seconds = ticks / TimeSpan.TicksPerSecond; in FromTimeSpan()
109 int nanos = (int) (ticks % TimeSpan.TicksPerSecond) * NanosecondsPerTick; in FromTimeSpan()
/third_party/vk-gl-cts/external/amber/src/samples/
H A Dtimestamp.cc46 LARGE_INTEGER ticks; in SampleGetTimestampNs() local
47 if (!QueryPerformanceCounter(&ticks)) { in SampleGetTimestampNs()
52 timestamp = uint64_t(static_cast<double>(ticks.QuadPart) * tick_duration_ns); in SampleGetTimestampNs()
/third_party/ltp/testcases/kernel/syscalls/timerfd/
H A Dtimerfd01.c69 uint64_t ticks; in waittmr() local
80 tst_res(TFAIL, "no ticks happened"); in waittmr()
83 SAFE_READ(0, tfd, &ticks, sizeof(ticks)); in waittmr()
85 if (ticks != exp_ticks) { in waittmr()
87 (unsigned int)ticks, exp_ticks); in waittmr()
142 tst_res(TFAIL, "timer ticks not zero"); in run()
/third_party/node/deps/v8/src/base/platform/
H A Dtime.cc306 // Determine current time and ticks. in Now()
307 TimeTicks ticks = GetSystemTicks(); in Now() local
312 TimeDelta elapsed = ticks - initial_ticks_; in Now()
314 initial_ticks_ = ticks; in Now()
697 TimeTicks ticks(g_time_ticks_now_function()); in Now()
698 DCHECK(!ticks.IsNull()); in Now()
699 return ticks; in Now()
712 int64_t ticks; in Now() local
720 ticks = (mach_absolute_time() / Time::kNanosecondsPerMicrosecond * in Now()
723 ticks in Now()
[all...]
/third_party/alsa-utils/seq/aplaymidi/
H A Darecordmidi.c72 static int ticks = 0; variable
240 duration = ticks * 4 / ts_div; in metronome_pattern()
288 snd_seq_queue_tempo_set_ppq(tempo, ticks); in create_queue()
293 * number of ticks/s. in create_queue()
298 snd_seq_queue_tempo_set_ppq(tempo, 12 * ticks); in create_queue()
302 snd_seq_queue_tempo_set_ppq(tempo, 10 * ticks); in create_queue()
306 snd_seq_queue_tempo_set_ppq(tempo, 2997 * ticks); in create_queue()
310 snd_seq_queue_tempo_set_ppq(tempo, 15 * ticks); in create_queue()
639 time_division = ticks; in write_file()
709 " -t,--ticks in help()
[all...]
/third_party/astc-encoder/Source/
H A Dastcenccli_platform_dependents.cpp140 unsigned long long ticks = tv.dwHighDateTime; in get_time() local
141 ticks = (ticks << 32) | tv.dwLowDateTime; in get_time()
142 return static_cast<double>(ticks) / 1.0e7; in get_time()
/third_party/python/Python/
H A Dpytime.c152 _PyTime_MulDiv(_PyTime_t ticks, _PyTime_t mul, _PyTime_t div) in _PyTime_MulDiv() argument
154 /* Compute (ticks * mul / div) in two parts to reduce the risk of integer in _PyTime_MulDiv()
157 (ticks * mul) / div == (ticks / div) * mul + (ticks % div) * mul / div in _PyTime_MulDiv()
160 intpart = ticks / div; in _PyTime_MulDiv()
161 ticks %= div; in _PyTime_MulDiv()
162 remaining = _PyTime_Mul(ticks, mul) / div; in _PyTime_MulDiv()
1020 /* Make sure that _PyTime_MulDiv(ticks, timebase_numer, timebase_denom) in py_mach_timebase_info()
1051 ULONGLONG ticks in py_get_monotonic_clock() local
1106 _PyTime_t ticks = (_PyTime_t)uticks; py_get_monotonic_clock() local
1252 _PyTime_t ticks; py_get_win_perf_counter() local
[all...]
/third_party/node/deps/v8/tools/
H A Dll_prof.py152 # Convert the ticks map to offsets and counts arrays so that later
172 # for ticks that touch the current instruction line.
195 "Lost ticks (%d != %d) in %s" % (total_count, self.self_ticks, self)
686 self.ticks = {}
715 mmap_info.ticks = 0
776 mmap_info.ticks += 1
809 def PrintReport(code_map, library_repo, arch, ticks, options):
815 print("%10d %5.1f%% %s [%s]" % (code_ticks, 100. * code_ticks / ticks,
821 mmap_infos = [m for m in library_repo.infos if m.ticks > 0]
822 mmap_infos.sort(key=lambda m: m.ticks, revers
[all...]
/third_party/icu/icu4c/source/i18n/
H A Dutmscale.cpp16 #define ticks INT64_C(1) macro
17 #define microseconds (ticks * 10)
30 {ticks, INT64_C(504911232000000000), U_INT64_MIN, INT64_C(8718460804854775807), INT64_C(-8718460804854775808), U_INT64_MAX, INT64_C(504911232000000000), INT64_C(504911232000000000), INT64_C(0), U_INT64_MIN, U_INT64_MAX},
31 {ticks, INT64_C(0), U_INT64_MIN, U_INT64_MAX, U_INT64_MIN, U_INT64_MAX, INT64_C(0), INT64_C(0), INT64_C(0), U_INT64_MIN, U_INT64_MAX},
/third_party/node/deps/icu-small/source/i18n/
H A Dutmscale.cpp16 #define ticks INT64_C(1) macro
17 #define microseconds (ticks * 10)
30 {ticks, INT64_C(504911232000000000), U_INT64_MIN, INT64_C(8718460804854775807), INT64_C(-8718460804854775808), U_INT64_MAX, INT64_C(504911232000000000), INT64_C(504911232000000000), INT64_C(0), U_INT64_MIN, U_INT64_MAX},
31 {ticks, INT64_C(0), U_INT64_MIN, U_INT64_MAX, U_INT64_MIN, U_INT64_MAX, INT64_C(0), INT64_C(0), INT64_C(0), U_INT64_MIN, U_INT64_MAX},
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dutmscale.cpp16 #define ticks INT64_C(1) macro
17 #define microseconds (ticks * 10)
30 {ticks, INT64_C(504911232000000000), U_INT64_MIN, INT64_C(8718460804854775807), INT64_C(-8718460804854775808), U_INT64_MAX, INT64_C(504911232000000000), INT64_C(504911232000000000), INT64_C(0), U_INT64_MIN, U_INT64_MAX},
31 {ticks, INT64_C(0), U_INT64_MIN, U_INT64_MAX, U_INT64_MIN, U_INT64_MAX, INT64_C(0), INT64_C(0), INT64_C(0), U_INT64_MIN, U_INT64_MAX},
/third_party/icu/icu4c/source/test/cintltst/
H A Dutmstest.c356 int64_t ticks; member
366 /* year, month, day, ticks */
454 int64_t ticks, millis; in TestDotNet() local
469 millis = utmscale_toInt64(dt->ticks, UDTS_ICU4C_TIME, &errorCode); in TestDotNet()
475 log_err("utmscale_toInt64(ticks[%d], ICU4C)=%dd != %dd=ucal_getMillis(%04d-%02d-%02d)\n", in TestDotNet()
480 ticks = utmscale_fromInt64((int64_t)icuDate, UDTS_ICU4C_TIME, &errorCode); in TestDotNet()
481 if(ticks != dt->ticks) { in TestDotNet()
482 /* Print days not ticks to stay within printf() range. */ in TestDotNet()
484 (int)i, (int)(ticks/dayTick in TestDotNet()
[all...]
/third_party/node/test/parallel/
H A Dtest-http-client-pipe-end.js53 // Schedule a callback after `ticks` event loop ticks
54 function sched(cb, ticks) {
56 if (--ticks)
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/timescale/
H A DGenerateCTimeScaleData.java37 private static final long ticks = 1; field in GenerateCTimeScaleData
38 private static final long microseconds = ticks * 10;
78 if (units == ticks) { in main()
79 cargs[0] = "ticks"; in main()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/timescale/
H A DTimeScaleDataTest.java140 /* year, month, day, ticks */
231 long ticks, millis; in TestDotNet()
249 errln("UniversalTimeScale.toLong(ticks[" + i + "], ICU4C)=" + in TestDotNet()
257 ticks = UniversalTimeScale.from(icuDate, UniversalTimeScale.ICU4C_TIME); in TestDotNet()
258 if(ticks != dotNetDateTimeTicks[i + kTicks]) { in TestDotNet()
259 /* Print days not ticks. */ in TestDotNet()
261 (ticks/dayTicks) + " != " + dotNetDateTimeTicks[i + kTicks]/dayTicks + in TestDotNet()

Completed in 15 milliseconds

1234