/external/sonivox/jet_tools/JetCreator/ |
D | midifile.py | 221 def ConvertToTicks (self, measures, beats, ticks): argument 223 total_ticks = ticks + (total_beats * self.ppqn) 226 def ConvertTicksToMBT (self, ticks): argument 227 beats = ticks / self.ppqn 228 ticks -= beats * self.ppqn 231 return (measures, beats, ticks) 233 def ConvertTicksToStr (self, ticks, format=DEFAULT_TIME_FORMAT): argument 234 measures, beats, ticks = self.ConvertTicksToMBT(ticks) 235 return format % (measures, beats, ticks) 239 measures, beats, ticks = s.split(':',3) [all …]
|
/external/ltp/testcases/kernel/syscalls/timerfd/ |
D | timerfd01.c | 109 u_int64_t ticks; in waittmr() local 123 if (read(tfd, &ticks, sizeof(ticks)) != sizeof(ticks)) { in waittmr() 128 return ticks; in waittmr() 137 long ticks; in main() local 176 ticks = waittmr(tfd, -1); in main() 178 if (ticks <= 0) in main() 182 ticks, (ttmr - tnow) / 1000); in main() 194 ticks = waittmr(tfd, -1); in main() 196 if (ticks <= 0) in main() 200 ticks, (ttmr - tnow) / 1000); in main() [all …]
|
/external/rust/crates/uuid/src/ |
D | v1.rs | 23 ticks: u64, field 45 pub const fn from_rfc4122(ticks: u64, counter: u16) -> Self { in from_rfc4122() 46 Timestamp { ticks, counter } in from_rfc4122() 78 let ticks = UUID_TICKS_BETWEEN_EPOCHS in from_unix() localVariable 82 Timestamp { ticks, counter } in from_unix() 93 (self.ticks, self.counter) in to_rfc4122() 104 (self.ticks - UUID_TICKS_BETWEEN_EPOCHS) / 10_000_000, in to_unix() 105 ((self.ticks - UUID_TICKS_BETWEEN_EPOCHS) % 10_000_000) as u32 in to_unix() 117 (self.ticks - UUID_TICKS_BETWEEN_EPOCHS) * 100 in to_unix_nanos() 202 let time_low = (ts.ticks & 0xFFFF_FFFF) as u32; in new_v1() [all …]
|
/external/libdrm/tests/ttmtest/src/ |
D | ttmtest.c | 170 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 …]
|
/external/sonivox/arm-wt-22k/lib_src/ |
D | eas_smf.c | 63 static void SMF_UpdateTime (S_SMF_DATA *pSMFData, EAS_U32 ticks); 288 EAS_U32 ticks; in SMF_Event() local 302 ticks = pSMFData->nextStream->ticks; in SMF_Event() 321 pSMFData->nextStream->ticks = SMF_END_OF_TRACK; in SMF_Event() 325 else if (pSMFData->nextStream->ticks != SMF_END_OF_TRACK) in SMF_Event() 334 pSMFData->nextStream->ticks = SMF_END_OF_TRACK; in SMF_Event() 338 else if (pSMFData->nextStream->ticks == ticks) in SMF_Event() 350 if (pSMFData->streams[i].ticks < temp) in SMF_Event() 352 temp = pSMFData->streams[i].ticks; in SMF_Event() 363 SMF_UpdateTime(pSMFData, pSMFData->nextStream->ticks - ticks); in SMF_Event() [all …]
|
/external/pigweed/pw_sync/ |
D | binary_semaphore_facade_test.cc | 135 EXPECT_LT(time_elapsed.ticks, kRoundedArbitraryDurationInC.ticks); in TEST() 143 EXPECT_GE(time_elapsed.ticks, kRoundedArbitraryDurationInC.ticks); in TEST() 152 .ticks = pw_chrono_SystemClock_Now().duration_since_epoch.ticks + in TEST() 153 kRoundedArbitraryDurationInC.ticks, in TEST() 157 EXPECT_LT(pw_chrono_SystemClock_Now().duration_since_epoch.ticks, in TEST() 158 deadline.duration_since_epoch.ticks); in TEST() 163 EXPECT_GE(pw_chrono_SystemClock_Now().duration_since_epoch.ticks, in TEST() 164 deadline.duration_since_epoch.ticks); in TEST()
|
D | counting_semaphore_facade_test.cc | 165 EXPECT_LT(time_elapsed.ticks, kRoundedArbitraryDurationInC.ticks); in TEST() 173 EXPECT_GE(time_elapsed.ticks, kRoundedArbitraryDurationInC.ticks); in TEST() 182 .ticks = pw_chrono_SystemClock_Now().duration_since_epoch.ticks + in TEST() 183 kRoundedArbitraryDurationInC.ticks, in TEST() 187 EXPECT_LT(pw_chrono_SystemClock_Now().duration_since_epoch.ticks, in TEST() 188 deadline.duration_since_epoch.ticks); in TEST() 193 EXPECT_GE(pw_chrono_SystemClock_Now().duration_since_epoch.ticks, in TEST() 194 deadline.duration_since_epoch.ticks); in TEST()
|
D | timed_mutex_facade_test.cc | 139 EXPECT_LT(time_elapsed.ticks, kRoundedArbitraryDurationInC.ticks); in TEST() 156 deadline.duration_since_epoch.ticks = in TEST() 157 pw_chrono_SystemClock_Now().duration_since_epoch.ticks + in TEST() 158 kRoundedArbitraryDurationInC.ticks; in TEST() 160 EXPECT_LT(pw_chrono_SystemClock_Now().duration_since_epoch.ticks, in TEST() 161 deadline.duration_since_epoch.ticks); in TEST()
|
/external/webrtc/api/neteq/ |
D | tick_timer_unittest.cc | 33 EXPECT_EQ(0u, tt.ticks()); in TEST() 35 EXPECT_EQ(1u, tt.ticks()); in TEST() 40 EXPECT_EQ(18u, tt.ticks()); in TEST() 43 EXPECT_EQ(35u, tt.ticks()); in TEST() 49 EXPECT_EQ(UINT64_MAX, tt.ticks()); in TEST() 51 EXPECT_EQ(0u, tt.ticks()); in TEST() 77 EXPECT_EQ(0u, tt.ticks()); in TEST() 82 EXPECT_EQ(1u, tt.ticks()); in TEST() 98 tt.Increment(UINT64_MAX - tt.ticks()); in TEST() 99 EXPECT_EQ(UINT64_MAX, tt.ticks()); in TEST()
|
/external/tensorflow/tensorflow/lite/micro/ |
D | micro_profiler.cc | 42 int32_t ticks = 0; in GetTotalTicks() local 44 ticks += end_ticks_[i] - start_ticks_[i]; in GetTotalTicks() 46 return ticks; in GetTotalTicks() 52 int32_t ticks = end_ticks_[i] - start_ticks_[i]; in Log() local 53 MicroPrintf("%s took %d ticks (%d ms).", tags_[i], ticks, TicksToMs(ticks)); in Log()
|
/external/pigweed/pw_thread/ |
D | sleep_facade_test.cc | 73 EXPECT_GE(time_elapsed.ticks, kRoundedArbitraryDurationInC.ticks); in TEST() 81 deadline.duration_since_epoch.ticks = in TEST() 82 pw_chrono_SystemClock_Now().duration_since_epoch.ticks + in TEST() 83 kRoundedArbitraryDurationInC.ticks; in TEST() 85 EXPECT_GE(pw_chrono_SystemClock_Now().duration_since_epoch.ticks, in TEST() 86 deadline.duration_since_epoch.ticks); in TEST()
|
/external/pigweed/pw_chrono/ |
D | system_clock.cc | 37 .ticks = pw::chrono::SystemClock::now().time_since_epoch().count()}}; in pw_chrono_SystemClock_Now() 43 return {.ticks = current_time.duration_since_epoch.ticks - in pw_chrono_SystemClock_TimeElapsed() 44 last_time.duration_since_epoch.ticks}; in pw_chrono_SystemClock_TimeElapsed() 51 pw::chrono::SystemClock::duration(duration.ticks)) in pw_chrono_SystemClock_DurationToNsFloor()
|
D | system_clock_facade_test.cc | 35 pw_chrono_SystemClock_Duration ticks); 82 if (pw_chrono_SystemClock_CallNow().duration_since_epoch.ticks > in TEST() 83 start_time.duration_since_epoch.ticks) { in TEST() 95 EXPECT_GE(0, pw_chrono_SystemClock_CallTimeElapsed(last, first).ticks); in TEST()
|
/external/python/cpython2/Lib/sqlite3/ |
D | dbapi2.py | 42 def DateFromTicks(ticks): argument 43 return Date(*time.localtime(ticks)[:3]) 45 def TimeFromTicks(ticks): argument 46 return Time(*time.localtime(ticks)[3:6]) 48 def TimestampFromTicks(ticks): argument 49 return Timestamp(*time.localtime(ticks)[:6])
|
/external/python/cpython3/Lib/sqlite3/ |
D | dbapi2.py | 41 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])
|
/external/catch2/include/internal/ |
D | catch_timer.cpp | 30 uint64_t ticks; in estimateClockResolution() local 33 ticks = getCurrentNanosecondsSinceEpoch(); in estimateClockResolution() 34 } while( ticks == baseTicks ); in estimateClockResolution() 36 auto delta = ticks - baseTicks; in estimateClockResolution() 42 if (ticks > startTime + 3 * nanosecondsInSecond) { in estimateClockResolution()
|
/external/usrsctp/usrsctplib/netinet/ |
D | sctp_callout.c | 63 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()
|
/external/arm-trusted-firmware/drivers/arm/sp805/ |
D | sp805.c | 32 void sp805_start(uintptr_t base, unsigned int ticks) in sp805_start() argument 34 sp805_write_wdog_load(base, ticks); in sp805_start() 46 void sp805_refresh(uintptr_t base, unsigned int ticks) in sp805_refresh() argument 49 sp805_write_wdog_load(base, ticks); in sp805_refresh()
|
/external/openscreen/cast/streaming/ |
D | rtp_time.h | 146 static constexpr RtpTimeDelta FromTicks(int64_t ticks) { in FromTicks() argument 147 return RtpTimeDelta(ticks); in FromTicks() 155 constexpr explicit RtpTimeDelta(int64_t ticks) : ExpandedValueBase(ticks) {} in RtpTimeDelta() argument 161 ToNearestRepresentativeValue(double ticks) { in ToNearestRepresentativeValue() argument 162 return Rep(ticks); in ToNearestRepresentativeValue() 167 ToNearestRepresentativeValue(double ticks) { in ToNearestRepresentativeValue() argument 168 return rounded_saturate_cast<Rep>(ticks); in ToNearestRepresentativeValue()
|
/external/mdnsresponder/mDNSPosix/ |
D | PosixDaemon.c | 153 mDNSs32 ticks; in MainLoop() local 160 ticks = nextTimerEvent - mDNS_TimeNow(m); in MainLoop() 161 if (ticks < 1) ticks = 1; in MainLoop() 164 ticks = 0; in MainLoop() 166 timeout.tv_sec = ticks / mDNSPlatformOneSecond; in MainLoop() 167 timeout.tv_usec = (ticks % mDNSPlatformOneSecond) * 1000000 / mDNSPlatformOneSecond; in MainLoop()
|
/external/perfetto/src/trace_processor/importers/fuchsia/ |
D | fuchsia_trace_utils.cc | 41 int64_t TicksToNs(uint64_t ticks, uint64_t ticks_per_second) { in TicksToNs() argument 42 uint64_t ticks_hi = ticks >> 32; in TicksToNs() 43 uint64_t ticks_lo = ticks & ((uint64_t(1) << 32) - 1); in TicksToNs() 106 uint64_t ticks; in ReadTimestamp() local 107 memcpy(&ticks, ts_data, sizeof(uint64_t)); in ReadTimestamp() 108 *ts_out = TicksToNs(ticks, ticks_per_second); in ReadTimestamp()
|
/external/webrtc/rtc_base/ |
D | time_utils.cc | 147 int64_t ticks; in SystemTimeNanos() local 164 ticks = mul(mach_absolute_time(), timebase.numer) / timebase.denom; in SystemTimeNanos() 170 ticks = kNumNanosecsPerSec * static_cast<int64_t>(ts.tv_sec) + in SystemTimeNanos() 173 ticks = TimeHelper::TicksNs(); in SystemTimeNanos() 189 ticks = now + (num_wrap_timegettime << 32); in SystemTimeNanos() 192 ticks = ticks * kNumNanosecsPerMillisec; in SystemTimeNanos() 196 return ticks; in SystemTimeNanos()
|
/external/tensorflow/tensorflow/lite/micro/benchmarks/ |
D | keyword_benchmark.cc | 68 int32_t ticks = 0; in KeywordRunNIerations() local 73 ticks += profiler.GetTotalTicks(); in KeywordRunNIerations() 75 MicroPrintf("%s took %d ticks (%d ms)", tag, ticks, TicksToMs(ticks)); in KeywordRunNIerations()
|
D | person_detection_benchmark.cc | 66 int32_t ticks = 0; in PersonDetectionNIerations() local 70 ticks += profiler.GetTotalTicks(); in PersonDetectionNIerations() 72 MicroPrintf("%s took %d ticks (%d ms)", tag, ticks, TicksToMs(ticks)); in PersonDetectionNIerations()
|
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/ |
D | DurationPartial.cs | 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()
|