Home
last modified time | relevance | path

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

1234

/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.cc180 int ticks = shared_function_info->profiler_ticks(); in OptimizeNow() local
181 if (ticks < Smi::kMaxValue) { in OptimizeNow()
182 shared_function_info->set_profiler_ticks(ticks + 1); in OptimizeNow()
198 int ticks = shared_code->profiler_ticks(); in OptimizeNow() local
200 ticks * kOSRCodeSizeAllowancePerTick; in OptimizeNow()
202 if (ticks < 255) shared_code->set_profiler_ticks(ticks + 1); in OptimizeNow()
223 int ticks = shared_code->profiler_ticks(); in OptimizeNow() local
224 if (ticks >= kProfilerTicksBeforeReenablingOptimization) { in OptimizeNow()
228 shared_code->set_profiler_ticks(ticks + 1); in OptimizeNow()
235 int ticks = shared_code->profiler_ticks(); in OptimizeNow() local
[all …]
/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-fm-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
285 ticks = pSMFData->nextStream->ticks; in SMF_Event()
304 pSMFData->nextStream->ticks = SMF_END_OF_TRACK; in SMF_Event()
308 else if (pSMFData->nextStream->ticks != SMF_END_OF_TRACK) in SMF_Event()
317 pSMFData->nextStream->ticks = SMF_END_OF_TRACK; in SMF_Event()
321 else if (pSMFData->nextStream->ticks == ticks) in SMF_Event()
333 if (pSMFData->streams[i].ticks < temp) in SMF_Event()
335 temp = pSMFData->streams[i].ticks; in SMF_Event()
346 SMF_UpdateTime(pSMFData, pSMFData->nextStream->ticks - ticks); in SMF_Event()
[all …]
/external/sonivox/arm-hybrid-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
285 ticks = pSMFData->nextStream->ticks; in SMF_Event()
304 pSMFData->nextStream->ticks = SMF_END_OF_TRACK; in SMF_Event()
308 else if (pSMFData->nextStream->ticks != SMF_END_OF_TRACK) in SMF_Event()
317 pSMFData->nextStream->ticks = SMF_END_OF_TRACK; in SMF_Event()
321 else if (pSMFData->nextStream->ticks == ticks) in SMF_Event()
333 if (pSMFData->streams[i].ticks < temp) in SMF_Event()
335 temp = pSMFData->streams[i].ticks; in SMF_Event()
346 SMF_UpdateTime(pSMFData, pSMFData->nextStream->ticks - ticks); in SMF_Event()
[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
24 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
26 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
13 ticks total nonlib name
20 ticks total nonlib name
32 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
13 ticks total nonlib name
20 ticks total nonlib name
31 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
15 ticks total nonlib name
22 ticks total nonlib name
34 ticks parent name
/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/webrtc/src/system_wrappers/source/
Dcpu_mac.cc50 WebRtc_Word64 ticks = 0; in CpuWrapperMac() local
53 ticks += cpuLoadInfo[cpu].cpu_ticks[state]; in CpuWrapperMac()
55 _lastTickCount[cpu] = ticks; in CpuWrapperMac()
122 WebRtc_Word64 ticks = 0; in Update() local
125 ticks += cpuLoadInfo[cpu].cpu_ticks[state]; in Update()
132 (ticks - _lastTickCount[cpu])) / in Update()
135 _lastTickCount[cpu] = ticks; in Update()
/external/v8/src/base/platform/
Dtime.cc160 TimeTicks ticks = GetSystemTicks(); in Now() local
165 TimeDelta elapsed = ticks - initial_ticks_; in Now()
167 initial_ticks_ = ticks; in Now()
414 int64_t ticks = (whole_seconds * Time::kMicrosecondsPerSecond) + in Now() local
419 return ticks + 1; in Now()
502 TimeTicks ticks(tick_clock.Pointer()->Now()); in Now() local
503 DCHECK(!ticks.IsNull()); in Now()
504 return ticks; in Now()
510 TimeTicks ticks(high_res_tick_clock.Pointer()->Now()); in HighResolutionNow() local
511 DCHECK(!ticks.IsNull()); in HighResolutionNow()
[all …]
Delapsed-timer.h57 TimeTicks ticks = Now(); in Restart() local
58 TimeDelta elapsed = ticks - start_ticks_; in Restart()
60 start_ticks_ = ticks; in Restart()
/external/webrtc/src/system_wrappers/interface/
Dtick_util.h51 static WebRtc_Word64 TicksToMilliseconds(const WebRtc_Word64 ticks);
54 friend TickTime operator+(const TickTime lhs, const WebRtc_Word64 ticks);
112 inline TickTime operator+(const TickTime lhs, const WebRtc_Word64 ticks)
115 time._ticks += ticks;
259 inline WebRtc_Word64 TickTime::TicksToMilliseconds(const WebRtc_Word64 ticks) in TicksToMilliseconds() argument
265 return (ticks * 1000) / qpfreq.QuadPart; in TicksToMilliseconds()
267 return ticks; in TicksToMilliseconds()
270 return ticks / 1000000LL; in TicksToMilliseconds()
272 return ticks / 1000LL; in TicksToMilliseconds()
276 inline TickTime& TickTime::operator+=(const WebRtc_Word64& ticks)
[all …]
/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/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/v8/tools/
Dll_prof.py712 self.ticks = {}
724 mmap_info.ticks = 0
785 mmap_info.ticks += 1
818 def PrintReport(code_map, library_repo, arch, ticks, options): argument
824 print "%10d %5.1f%% %s [%s]" % (code_ticks, 100. * code_ticks / ticks,
830 mmap_infos = [m for m in library_repo.infos if m.ticks > 0]
831 mmap_infos.sort(key=lambda m: m.ticks, reverse=True)
833 mmap_ticks = mmap_info.ticks
834 print "%10d %5.1f%% %s" % (mmap_ticks, 100. * mmap_ticks / ticks,
845 for callee, ticks in code.callee_ticks.iteritems():
[all …]
/external/icu/icu4c/source/test/cintltst/
Dutmstest.c353 int64_t ticks; member
451 int64_t ticks, millis; in TestDotNet() local
466 millis = utmscale_toInt64(dt->ticks, UDTS_ICU4C_TIME, &errorCode); in TestDotNet()
477 ticks = utmscale_fromInt64((int64_t)icuDate, UDTS_ICU4C_TIME, &errorCode); in TestDotNet()
478 if(ticks != dt->ticks) { in TestDotNet()
481 …(int)i, (int)(ticks/dayTicks), (int)(dt->ticks/dayTicks), (int)dt->year, (int)dt->month, (int)dt->… in TestDotNet()

1234