Home
last modified time | relevance | path

Searched refs:ticks (Results 1 – 25 of 166) sorted by relevance

1234567

/third_party/flutter/skia/third_party/externals/sdl/src/timer/unix/
DSDL_systimer.c105 Uint32 ticks; in SDL_GetTicks() local
114 ticks = (now.tv_sec - start_ts.tv_sec) * 1000 + (now.tv_nsec - in SDL_GetTicks()
118ticks = (Uint32)((((now - start_mach) * mach_base_info.numer) / mach_base_info.denom) / 1000000); in SDL_GetTicks()
121 ticks = 0; in SDL_GetTicks()
127ticks = (Uint32)((now.tv_sec - start_tv.tv_sec) * 1000 + (now.tv_usec - start_tv.tv_usec) / 1000); in SDL_GetTicks()
129 return (ticks); in SDL_GetTicks()
135 Uint64 ticks; in SDL_GetPerformanceCounter() local
145 ticks = now.tv_sec; in SDL_GetPerformanceCounter()
146 ticks *= 1000000000; in SDL_GetPerformanceCounter()
147 ticks += now.tv_nsec; in SDL_GetPerformanceCounter()
[all …]
/third_party/libdrm/tests/ttmtest/src/
Dttmtest.c170 unsigned long *ticks) in benchmarkBuffer() argument
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++ = time_diff(oldTime, curTime); in benchmarkBuffer()
[all …]
/third_party/boost/boost/date_time/
Dtime_duration.hpp87 return static_cast<hour_type>(ticks() / (3600*ticks_per_second())); in hours()
92 return static_cast<min_type>((ticks() / (60*ticks_per_second())) % 60); in minutes()
97 return static_cast<sec_type>((ticks()/ticks_per_second()) % 60); in seconds()
102 return static_cast<sec_type>(ticks() / ticks_per_second()); in total_seconds()
108 return ticks() * (static_cast<tick_type>(1000) / ticks_per_second()); in total_milliseconds()
110 return ticks() / (ticks_per_second() / static_cast<tick_type>(1000)) ; in total_milliseconds()
116 return ticks() * (static_cast<tick_type>(1000000000) / ticks_per_second()); in total_nanoseconds()
118 return ticks() / (ticks_per_second() / static_cast<tick_type>(1000000000)) ; in total_nanoseconds()
124 return ticks() * (static_cast<tick_type>(1000000) / ticks_per_second()); in total_microseconds()
126 return ticks() / (ticks_per_second() / static_cast<tick_type>(1000000)) ; in total_microseconds()
[all …]
/third_party/libuv/test/
Dbenchmark-loop-count.c30 static unsigned long ticks; variable
36 if (++ticks == NUM_TICKS) in idle_cb()
42 ticks++; in idle2_cb()
63 ASSERT(ticks == NUM_TICKS); in BENCHMARK_IMPL()
87 fprintf(stderr, "loop_count: %lu ticks (%.0f ticks/s)\n", ticks, ticks / 5.0); in BENCHMARK_IMPL()
/third_party/node/test/tick-processor/
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 = []) { argument
34 fs.writeFileSync(LOG_FILE, ticks());
54 return setTimeout(() => match(pattern, parent, ticks), RETRY_TIMEOUT);
Dtest-tick-processor-polyfill-brokenfile.js45 let ticks = ''; variable
46 proc.stdout.on('data', (chunk) => ticks += chunk);
63 setTimeout(() => runPolyfill(ticks), RETRY_TIMEOUT);
/third_party/python/Lib/sqlite3/
Ddbapi2.py41 def DateFromTicks(ticks): argument
42 return Date(*time.localtime(ticks)[:3])
44 def TimeFromTicks(ticks): argument
45 return Time(*time.localtime(ticks)[3:6])
47 def TimestampFromTicks(ticks): argument
48 return Timestamp(*time.localtime(ticks)[:6])
/third_party/boost/boost/log/detail/
Dtimestamp.hpp44 explicit duration(int64_t ticks = 0) BOOST_NOEXCEPT : m_ticks(ticks) {} in duration() argument
61 explicit timestamp(uint64_t ticks = 0) BOOST_NOEXCEPT : m_ticks(ticks) {} in timestamp() argument
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_callout.c63 static uint32_t ticks = 0; variable
65 extern int ticks;
72 ret = ticks; in sctp_get_tick_count()
126 c->c_time = ticks + to_ticks; in sctp_os_timer_start()
162 ticks += elapsed_ticks; in sctp_handle_tick()
165 if (SCTP_UINT32_GE(ticks, c->c_time)) { in sctp_handle_tick()
/third_party/flutter/engine/flutter/fml/time/
Dtime_point.h37 static constexpr TimePoint FromEpochDelta(TimeDelta ticks) { in FromEpochDelta() argument
38 return TimePoint(ticks.ToNanoseconds()); in FromEpochDelta()
63 explicit constexpr TimePoint(int64_t ticks) : ticks_(ticks) {} in TimePoint() argument
/third_party/iowow/src/platform/win32/
Dwin32.c17 uint64_t ticks = ((uint64_t) ft->dwHighDateTime << 32) + ft->dwLowDateTime; in _iwp_filetime2ticks() local
18 if (ticks < _TICKS_TO_UNIX_EPOCH) { in _iwp_filetime2ticks()
21 ticks -= _TICKS_TO_UNIX_EPOCH; in _iwp_filetime2ticks()
22 return ticks; in _iwp_filetime2ticks()
26 uint64_t ticks = _iwp_filetime2ticks(ft); in _iwp_filetime2timespec() local
27 spec->tv_sec = ticks / _TICKS_PER_SECOND; in _iwp_filetime2timespec()
28 spec->tv_nsec = (ticks % _TICKS_PER_SECOND) * _NANOSECONDS_PER_TICK; in _iwp_filetime2timespec()
32 uint64_t ticks = _iwp_filetime2ticks(ft); in _iwp_filetime2millisecons() local
33 return ticks / _TICKS_PER_MILLISECOND; in _iwp_filetime2millisecons()
/third_party/boost/libs/asio/include/boost/asio/detail/
Dchrono_time_traits.hpp133 int64_t ticks() const in ticks() function in boost::asio::detail::chrono_time_traits::posix_time_duration
167 return ticks(); in duration_cast()
169 return ticks() * num; in duration_cast()
171 return ticks() / den; in duration_cast()
173 return ticks() * num / den; in duration_cast()
/third_party/boost/boost/asio/detail/
Dchrono_time_traits.hpp133 int64_t ticks() const in ticks() function in boost::asio::detail::chrono_time_traits::posix_time_duration
167 return ticks(); in duration_cast()
169 return ticks() * num; in duration_cast()
171 return ticks() / den; in duration_cast()
173 return ticks() * num / den; in duration_cast()
/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DDurationPartial.cs93 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/flutter/skia/third_party/externals/sdl/test/
Dtesttimer.c24 static int ticks = 0; variable
29 ++ticks; in ticktock()
74 if (ticks) { in main()
76 desired, (double) (10 * 1000) / ticks); in main()
/third_party/flutter/skia/third_party/externals/sdl/src/timer/psp/
DSDL_systimer.c61 Uint32 ticks; in SDL_GetTicks() local
64 ticks=(now.tv_sec-start.tv_sec)*1000+(now.tv_usec-start.tv_usec)/1000; in SDL_GetTicks()
65 return(ticks); in SDL_GetTicks()
/third_party/ltp/testcases/kernel/syscalls/timerfd/
Dtimerfd01.c69 uint64_t ticks; in waittmr() local
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()
/third_party/boost/libs/atomic/test/
Dtest_clock.hpp41 rep ticks = boost::winapi::GetTickCount64(); in now() local
43 rep ticks = boost::winapi::GetTickCount(); in now()
45 return time_point(duration(ticks)); in now()
/third_party/alsa-utils/seq/aplaymidi/
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()
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()
786 ticks = atoi(optarg); in main()
787 if (ticks < 1 || ticks > 0x7fff) in main()
[all …]
/third_party/python/Python/
Dpytime.c53 _PyTime_MulDiv(_PyTime_t ticks, _PyTime_t mul, _PyTime_t div) in _PyTime_MulDiv() argument
62 intpart = ticks / div; in _PyTime_MulDiv()
63 ticks %= div; in _PyTime_MulDiv()
64 remaining = ticks * mul; in _PyTime_MulDiv()
840 ULONGLONG ticks; in py_get_monotonic_clock() local
845 ticks = GetTickCount64(); in py_get_monotonic_clock()
846 Py_BUILD_ASSERT(sizeof(ticks) <= sizeof(_PyTime_t)); in py_get_monotonic_clock()
847 t = (_PyTime_t)ticks; in py_get_monotonic_clock()
892 uint64_t ticks = mach_absolute_time(); in py_get_monotonic_clock()
893 *tp = _PyTime_MulDiv((_PyTime_t)ticks, timebase_numer, timebase_denom); in py_get_monotonic_clock()
[all …]
/third_party/icu/icu4c/source/test/cintltst/
Dutmstest.c355 int64_t ticks; member
453 int64_t ticks, millis; in TestDotNet() local
468 millis = utmscale_toInt64(dt->ticks, UDTS_ICU4C_TIME, &errorCode); in TestDotNet()
479 ticks = utmscale_fromInt64((int64_t)icuDate, UDTS_ICU4C_TIME, &errorCode); in TestDotNet()
480 if(ticks != dt->ticks) { in TestDotNet()
483 …(int)i, (int)(ticks/dayTicks), (int)(dt->ticks/dayTicks), (int)dt->year, (int)dt->month, (int)dt->… in TestDotNet()
/third_party/node/deps/icu-small/source/i18n/
Dutmscale.cpp16 #define ticks INT64_C(1) macro
17 #define microseconds (ticks * 10)
30 …{ticks, INT64_C(504911232000000000), U_INT64_MIN, INT64_C(871846080485477…
31 …{ticks, INT64_C(0), U_INT64_MIN, U_INT64_MAX, …
/third_party/icu/icu4c/source/i18n/
Dutmscale.cpp16 #define ticks INT64_C(1) macro
17 #define microseconds (ticks * 10)
30 …{ticks, INT64_C(504911232000000000), U_INT64_MIN, INT64_C(871846080485477…
31 …{ticks, INT64_C(0), U_INT64_MIN, U_INT64_MAX, …
/third_party/skia/third_party/externals/icu/source/i18n/
Dutmscale.cpp16 #define ticks INT64_C(1) macro
17 #define microseconds (ticks * 10)
30 …{ticks, INT64_C(504911232000000000), U_INT64_MIN, INT64_C(871846080485477…
31 …{ticks, INT64_C(0), U_INT64_MIN, U_INT64_MAX, …
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dutmscale.cpp16 #define ticks INT64_C(1) macro
17 #define microseconds (ticks * 10)
30 …{ticks, INT64_C(504911232000000000), U_INT64_MIN, INT64_C(871846080485477…
31 …{ticks, INT64_C(0), U_INT64_MIN, U_INT64_MAX, …

1234567