Home
last modified time | relevance | path

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

12345

/external/sonivox/jet_tools/JetCreator/
Dmidifile.py221 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/libnfc-nci/src/gki/common/
Dgki_time.c196 void GKI_start_timer (UINT8 tnum, INT32 ticks, BOOLEAN is_continuous) in GKI_start_timer() argument
203 if (ticks <= 0) in GKI_start_timer()
204 ticks = 1; in GKI_start_timer()
206 orig_ticks = ticks; /* save the ticks in case adjustment is necessary */ in GKI_start_timer()
211 reload = ticks; in GKI_start_timer()
243 if (GKI_MAX_INT32 - (gki_cb.com.OSNumOrigTicks - gki_cb.com.OSTicksTilExp) > ticks) in GKI_start_timer()
245 ticks += gki_cb.com.OSNumOrigTicks - gki_cb.com.OSTicksTilExp; in GKI_start_timer()
248 ticks = GKI_MAX_INT32; in GKI_start_timer()
255 gki_cb.com.OSTaskTmr0 [task_id] = ticks; in GKI_start_timer()
262 gki_cb.com.OSTaskTmr1 [task_id] = ticks; in GKI_start_timer()
[all …]
/external/libnfc-nci/halimpl/bcm2079x/gki/common/
Dgki_time.c196 void GKI_start_timer (UINT8 tnum, INT32 ticks, BOOLEAN is_continuous) in GKI_start_timer() argument
203 if (ticks <= 0) in GKI_start_timer()
204 ticks = 1; in GKI_start_timer()
206 orig_ticks = ticks; /* save the ticks in case adjustment is necessary */ in GKI_start_timer()
211 reload = ticks; in GKI_start_timer()
243 if (GKI_MAX_INT32 - (gki_cb.com.OSNumOrigTicks - gki_cb.com.OSTicksTilExp) > ticks) in GKI_start_timer()
245 ticks += gki_cb.com.OSNumOrigTicks - gki_cb.com.OSTicksTilExp; in GKI_start_timer()
248 ticks = GKI_MAX_INT32; in GKI_start_timer()
255 gki_cb.com.OSTaskTmr0 [task_id] = ticks; in GKI_start_timer()
262 gki_cb.com.OSTaskTmr1 [task_id] = ticks; in GKI_start_timer()
[all …]
/external/valgrind/memcheck/tests/linux/
Dtimerfd-syscall.c148 u_int64_t ticks; in waittmr() local
164 if (read(tfd, &ticks, sizeof(ticks)) != sizeof(ticks)) in waittmr()
170 return ticks; in waittmr()
176 long ticks; in main() local
211 ticks = waittmr(tfd, -1); in main()
213 if (ticks <= 0) in main()
217 ticks, (ttmr - tnow) * 1e-6); in main()
231 ticks = waittmr(tfd, -1); in main()
233 if (ticks <= 0) in main()
237 ticks, (ttmr - tnow) * 1e-6); in main()
[all …]
Dtimerfd-syscall.stderr.exp10 got timer ticks (1) after 0.5 s
13 got timer ticks (1) after 0.5 s
20 got about 20 timer ticks after about 2s
23 got timer ticks (1) after 0.1 s
33 got timer ticks (1) after 0.5 s
36 got timer ticks (1) after 0.5 s
43 got about 20 timer ticks after about 2s
46 got timer ticks (1) after 0.1 s
/external/v8/src/
Druntime-profiler.cc165 int ticks = shared_function_info->profiler_ticks(); in OptimizeNow() local
166 if (ticks < Smi::kMaxValue) { in OptimizeNow()
167 shared_function_info->set_profiler_ticks(ticks + 1); in OptimizeNow()
183 int ticks = shared_code->profiler_ticks(); in OptimizeNow() local
186 static_cast<int64_t>(ticks) * kOSRCodeSizeAllowancePerTick; in OptimizeNow()
188 ticks < Code::ProfilerTicksField::kMax) { in OptimizeNow()
189 shared_code->set_profiler_ticks(ticks + 1); in OptimizeNow()
210 int ticks = shared_code->profiler_ticks(); in OptimizeNow() local
211 if (ticks >= kProfilerTicksBeforeReenablingOptimization) { in OptimizeNow()
215 shared_code->set_profiler_ticks(ticks + 1); in OptimizeNow()
[all …]
/external/webrtc/webrtc/system_wrappers/source/
Dtick_util.cc44 int64_t TickTime::TicksToMilliseconds(const int64_t ticks) { in TicksToMilliseconds() argument
46 return ticks; in TicksToMilliseconds()
48 return ticks / 1000000LL; in TicksToMilliseconds()
57 return ticks * timebase_microsecond_fract; in TicksToMilliseconds()
59 return ticks; in TicksToMilliseconds()
63 int64_t TickTime::TicksToMicroseconds(const int64_t ticks) { in TicksToMicroseconds() argument
65 return ticks * 1000LL; in TicksToMicroseconds()
67 return ticks / 1000LL; in TicksToMicroseconds()
76 return ticks * timebase_microsecond_fract; in TicksToMicroseconds()
78 return ticks; in TicksToMicroseconds()
/external/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 …]
/external/sonivox/arm-wt-22k/lib_src/
Deas_smf.c60 static void SMF_UpdateTime (S_SMF_DATA *pSMFData, EAS_U32 ticks);
276 EAS_U32 ticks; in SMF_Event() local
290 ticks = pSMFData->nextStream->ticks; in SMF_Event()
309 pSMFData->nextStream->ticks = SMF_END_OF_TRACK; in SMF_Event()
313 else if (pSMFData->nextStream->ticks != SMF_END_OF_TRACK) in SMF_Event()
322 pSMFData->nextStream->ticks = SMF_END_OF_TRACK; in SMF_Event()
326 else if (pSMFData->nextStream->ticks == ticks) in SMF_Event()
338 if (pSMFData->streams[i].ticks < temp) in SMF_Event()
340 temp = pSMFData->streams[i].ticks; in SMF_Event()
351 SMF_UpdateTime(pSMFData, pSMFData->nextStream->ticks - ticks); in SMF_Event()
[all …]
/external/v8/test/mjsunit/tools/
Dtickprocessor-test.gc-state1 Statistical profiling result from v8.log, (13 ticks, 0 unaccounted, 13 excluded).
4 ticks total nonlib name
7 ticks total nonlib name
10 ticks total nonlib name
13 ticks total nonlib name
20 ticks cpp total name
27 ticks parent name
Dtickprocessor-test.func-info1 Statistical profiling result from v8.log, (3 ticks, 0 unaccounted, 0 excluded).
4 ticks total nonlib name
7 ticks total nonlib name
12 ticks total nonlib name
15 ticks total nonlib name
22 ticks cpp total name
29 ticks parent name
Dtickprocessor-test.ignore-unknown1 Statistical profiling result from v8.log, (13 ticks, 2 unaccounted, 0 excluded).
4 ticks total nonlib name
9 ticks total nonlib name
12 ticks total nonlib name
19 ticks total nonlib name
26 ticks cpp total name
37 ticks parent name
Dtickprocessor-test.default1 Statistical profiling result from v8.log, (13 ticks, 2 unaccounted, 0 excluded).
4 ticks total nonlib name
9 ticks total nonlib name
12 ticks total nonlib name
19 ticks total nonlib name
27 ticks cpp total name
38 ticks parent name
Dtickprocessor-test.separate-ic1 Statistical profiling result from v8.log, (13 ticks, 2 unaccounted, 0 excluded).
4 ticks total nonlib name
9 ticks total nonlib name
14 ticks total nonlib name
21 ticks total nonlib name
29 ticks cpp total name
40 ticks parent name
/external/webrtc/webrtc/system_wrappers/include/
Dtick_util.h41 explicit TickTime(int64_t ticks);
57 static int64_t TicksToMilliseconds(const int64_t ticks);
59 static int64_t TicksToMicroseconds(const int64_t ticks);
62 friend TickTime operator+(const TickTime lhs, const int64_t ticks);
63 TickTime& operator+=(const int64_t& ticks);
128 inline TickTime operator+(const TickTime lhs, const int64_t ticks) {
130 time.ticks_ += ticks;
154 inline TickTime::TickTime(int64_t ticks) in TickTime() argument
155 : ticks_(ticks) { in TickTime()
166 inline TickTime& TickTime::operator+=(const int64_t& ticks) {
[all …]
/external/skia/experimental/SkV8Example/js/
Dsample.js5 var ticks = 0;
11 ticks += 1;
14 context.rotate(ticks/10);
21 console.log(ticks);
22 ticks = 0;
Dsnow.js21 var ticks = 0;
66 ticks++;
73 console.log(ticks);
74 ticks = 0;
/external/fio/
Ddiskutil.c69 (unsigned long long *) &dus->s.ticks[0], in get_io_ticks()
73 (unsigned long long *) &dus->s.ticks[1], in get_io_ticks()
103 dus->s.ticks[0] += (__dus.s.ticks[0] - ldus->s.ticks[0]); in update_io_tick_disk()
104 dus->s.ticks[1] += (__dus.s.ticks[1] - ldus->s.ticks[1]); in update_io_tick_disk()
511 (unsigned long long) agg->ticks[0] / agg->slavecount, in show_agg_stats()
512 (unsigned long long) agg->ticks[1] / agg->slavecount, in show_agg_stats()
521 (unsigned long long) agg->ticks[0] / agg->slavecount, in show_agg_stats()
522 (unsigned long long) agg->ticks[1] / agg->slavecount, in show_agg_stats()
545 agg->ticks[0] += dus->s.ticks[0]; in aggregate_slaves_stats()
546 agg->ticks[1] += dus->s.ticks[1]; in aggregate_slaves_stats()
[all …]
/external/v8/src/base/platform/
Dtime.cc162 TimeTicks ticks = GetSystemTicks(); in Now() local
167 TimeDelta elapsed = ticks - initial_ticks_; in Now()
169 initial_ticks_ = ticks; in Now()
421 int64_t ticks = (whole_seconds * Time::kMicrosecondsPerSecond) + in Now() local
426 return ticks + 1; in Now()
504 TimeTicks ticks(tick_clock.Pointer()->Now()); in Now() local
505 DCHECK(!ticks.IsNull()); in Now()
506 return ticks; in Now()
512 TimeTicks ticks(high_res_tick_clock.Pointer()->Now()); in HighResolutionNow() local
513 DCHECK(!ticks.IsNull()); in HighResolutionNow()
[all …]
/external/chromium-trace/catapult/telemetry/telemetry/web_perf/metrics/
Dwebrtc_rendering_stats.py145 for ticks in cadence:
146 ticks_so_far = frame_distribution.setdefault(ticks, 0)
147 frame_distribution[ticks] = ticks_so_far + 1
164 number_vsyncs = sum([ticks * frame_distribution[ticks]
165 for ticks in frame_distribution])
185 frozen_frame_vsyncs = [ticks for ticks in frame_distribution if ticks >=
/external/mdnsresponder/mDNSPosix/
DPosixDaemon.c153 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/webrtc/webrtc/base/
Dtimeutils.cc38 int64_t ticks = 0; in TimeNanos() local
49 ticks = mach_absolute_time() * timebase.numer / timebase.denom; in TimeNanos()
55 ticks = kNumNanosecsPerSec * static_cast<int64_t>(ts.tv_sec) + in TimeNanos()
73 ticks = now + (num_wrap_timegettime << 32); in TimeNanos()
76 ticks = ticks * kNumNanosecsPerMillisec; in TimeNanos()
78 return ticks; in TimeNanos()
/external/skia/src/core/
DSkTime.cpp73 uint64_t ticks = __rdtsc(); in GetNSecs() local
74 return ticks * *ns_per_tick.get([]{ in GetNSecs()
85 uint64_t ticks = mach_absolute_time(); in GetNSecs() local
86 return ticks * *ns_per_tick.get([]{ in GetNSecs()
/external/v8/tools/
Dll_prof.py736 self.ticks = {}
765 mmap_info.ticks = 0
826 mmap_info.ticks += 1
859 def PrintReport(code_map, library_repo, arch, ticks, options): argument
865 print "%10d %5.1f%% %s [%s]" % (code_ticks, 100. * code_ticks / ticks,
871 mmap_infos = [m for m in library_repo.infos if m.ticks > 0]
872 mmap_infos.sort(key=lambda m: m.ticks, reverse=True)
874 mmap_ticks = mmap_info.ticks
875 print "%10d %5.1f%% %s" % (mmap_ticks, 100. * mmap_ticks / ticks,
886 for callee, ticks in code.callee_ticks.iteritems():
[all …]
Dprofile.js403 Profile.CEntryNode = function(name, ticks) { argument
405 this.ticks = ticks;
413 var ticks = this.c_entries_[f];
414 total_ticks += ticks;
415 result.push(new Profile.CEntryNode(f, ticks));
417 result[0].ticks = total_ticks; // Sorting will keep this at index 0.
419 return n2.ticks - n1.ticks || (n2.name < n1.name ? -1 : 1)

12345