Home
last modified time | relevance | path

Searched refs:timer1 (Results 1 – 6 of 6) sorted by relevance

/third_party/skia/third_party/externals/icu/source/tools/ctestfw/unicode/
Dutimer.h180 static double uprv_delta(UTimer* timer1, UTimer* timer2){ in uprv_delta() argument
181 …return ((double)(timer2->start.QuadPart - timer1->start.QuadPart))/((double)timer1->placeHolder.Qu… in uprv_delta()
183 static UBool uprv_compareFrequency(UTimer* timer1, UTimer* timer2){ in uprv_compareFrequency() argument
184 return (timer1->placeHolder.QuadPart == timer2->placeHolder.QuadPart); in uprv_compareFrequency()
202 static double uprv_delta(UTimer* timer1, UTimer* timer2){ in uprv_delta() argument
205 t1 = (double)timer1->start.tv_sec + (double)timer1->start.tv_usec/(1000*1000); in uprv_delta()
234 utimer_getDeltaSeconds(UTimer* timer1, UTimer* timer2){ in utimer_getDeltaSeconds() argument
235 if(uprv_compareFrequency(timer1,timer2)){ in utimer_getDeltaSeconds()
236 return uprv_delta(timer1,timer2); in utimer_getDeltaSeconds()
/third_party/icu/icu4c/source/tools/ctestfw/unicode/
Dutimer.h180 static double uprv_delta(UTimer* timer1, UTimer* timer2){ in uprv_delta() argument
181 …return ((double)(timer2->start.QuadPart - timer1->start.QuadPart))/((double)timer1->placeHolder.Qu… in uprv_delta()
183 static UBool uprv_compareFrequency(UTimer* timer1, UTimer* timer2){ in uprv_compareFrequency() argument
184 return (timer1->placeHolder.QuadPart == timer2->placeHolder.QuadPart); in uprv_compareFrequency()
202 static double uprv_delta(UTimer* timer1, UTimer* timer2){ in uprv_delta() argument
205 t1 = (double)timer1->start.tv_sec + (double)timer1->start.tv_usec/(1000*1000); in uprv_delta()
234 utimer_getDeltaSeconds(UTimer* timer1, UTimer* timer2){ in utimer_getDeltaSeconds() argument
235 if(uprv_compareFrequency(timer1,timer2)){ in utimer_getDeltaSeconds()
236 return uprv_delta(timer1,timer2); in utimer_getDeltaSeconds()
/third_party/python/Lib/tkinter/test/test_tkinter/
Dtest_misc.py78 timer1 = root.after(0, callback)
79 self.assertIn(timer1, root.tk.call('after', 'info'))
80 (script, _) = root.tk.splitlist(root.tk.call('after', 'info', timer1))
88 timer1 = root.after(0, callback, 42, 11)
93 timer1 = root.after(1000, callback)
94 self.assertIn(timer1, root.tk.call('after', 'info'))
95 (script, _) = root.tk.splitlist(root.tk.call('after', 'info', timer1))
96 root.after_cancel(timer1) # Cancel this event.
103 timer1 = root.after(0, functools.partial(callback, 42, 11))
146 timer1 = root.after(5000, callback)
[all …]
/third_party/node/test/parallel/
Dtest-timers-unrefed-in-callback.js30 const timer1 = setInterval(common.mustCall(() => {
31 timer1.unref();
33 clearInterval(timer1);
/third_party/python/Lib/test/
Dtest_threading.py1541 timer1 = threading.Timer(0.01, self._callback_spy)
1542 timer1.start()
1544 timer1.args.append("blah")
1545 timer1.kwargs["foo"] = "bar"
1552 timer1.join()
/third_party/python/Doc/whatsnew/
D2.3.rst1547 timer1 = timeit.Timer('unicode("abc")')
1551 print timer1.repeat(repeat=3, number=100000)