Home
last modified time | relevance | path

Searched refs:timer (Results 1 – 25 of 469) sorted by relevance

12345678910>>...19

/external/syslinux/gpxe/src/net/
Dretry.c59 void start_timer ( struct retry_timer *timer ) { in start_timer() argument
60 if ( ! timer->running ) in start_timer()
61 list_add ( &timer->list, &timers ); in start_timer()
62 timer->start = currticks(); in start_timer()
63 timer->running = 1; in start_timer()
66 if ( timer->min_timeout == 0 ) in start_timer()
67 timer->min_timeout = DEFAULT_MIN_TIMEOUT; in start_timer()
69 if ( timer->min_timeout < MIN_TIMEOUT ) in start_timer()
70 timer->min_timeout = MIN_TIMEOUT; in start_timer()
72 if ( timer->timeout < timer->min_timeout ) in start_timer()
[all …]
/external/deqp/framework/delibs/deutil/
DdeTimer.c39 HANDLE timer; member
44 const deTimer* timer = (const deTimer*)lpParameter; in timerCallback() local
47 timer->callback(timer->callbackArg); in timerCallback()
52 deTimer* timer = (deTimer*)deCalloc(sizeof(deTimer)); in deTimer_create() local
54 if (!timer) in deTimer_create()
57 timer->callback = callback; in deTimer_create()
58 timer->callbackArg = arg; in deTimer_create()
59 timer->timer = 0; in deTimer_create()
61 return timer; in deTimer_create()
64 void deTimer_destroy (deTimer* timer) in deTimer_destroy() argument
[all …]
DdeTimerTest.c46 deTimer* timer = DE_NULL; in deTimer_selfTest() local
51 timer = deTimer_create(timerCallback, (void*)&numCalls); in deTimer_selfTest()
52 DE_TEST_ASSERT(timer); in deTimer_selfTest()
65 scheduleOk = deTimer_scheduleSingle(timer, interval); in deTimer_selfTest()
67 scheduleOk = deTimer_scheduleInterval(timer, interval); in deTimer_selfTest()
72 deTimer_disable(timer); in deTimer_selfTest()
79 deTimer_destroy(timer); in deTimer_selfTest()
/external/libchrome/base/timer/
Dtimer_unittest.cc214 base::DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(1), &target, in RunTest_DelayTimer_NoCall() local
229 base::DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(1), &target, in RunTest_DelayTimer_OneCall() local
231 timer.Reset(); in RunTest_DelayTimer_OneCall()
242 ResetHelper(base::DelayTimer* timer, DelayTimerTarget* target) in ResetHelper()
243 : timer_(timer), target_(target) {} in ResetHelper()
260 base::DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(50), &target, in RunTest_DelayTimer_Reset() local
262 timer.Reset(); in RunTest_DelayTimer_Reset()
264 ResetHelper reset_helper(&timer, &target); in RunTest_DelayTimer_Reset()
294 base::DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(50), &target, in RunTest_DelayTimer_Deleted() local
296 timer.Reset(); in RunTest_DelayTimer_Deleted()
[all …]
Dmock_timer_unittest.cc18 base::MockTimer timer(false, false); in TEST() local
20 timer.Start(FROM_HERE, delay, in TEST()
23 EXPECT_EQ(delay, timer.GetCurrentDelay()); in TEST()
24 EXPECT_TRUE(timer.IsRunning()); in TEST()
25 timer.Fire(); in TEST()
26 EXPECT_FALSE(timer.IsRunning()); in TEST()
32 base::MockTimer timer(true, true); in TEST() local
34 timer.Start(FROM_HERE, delay, in TEST()
37 timer.Fire(); in TEST()
38 EXPECT_TRUE(timer.IsRunning()); in TEST()
[all …]
/external/valgrind/memcheck/tests/linux/
Dtimerfd-syscall.stderr.exp8 relative timer test (at 500 ms) ...
9 waiting timer ...
10 got timer ticks (1) after 0.5 s
11 absolute timer test (at 500 ms) ...
12 waiting timer ...
13 got timer ticks (1) after 0.5 s
14 sequential timer test (100 ms clock) ...
19 waiting timer ...
20 got about 20 timer ticks after about 2s
22 waiting timer (flush the single tick) ...
[all …]
/external/eigen/bench/
Dsparse_dense_product.cpp29 timer.reset(); \
31 timer.start(); \
34 } timer.stop(); }
62 BenchTimer timer; in main() local
75 timer.reset(); in main()
76 timer.start(); in main()
79 timer.stop(); in main()
80 …std::cout << " a * v:\t" << timer.best() << " " << double(REPEAT)/timer.best() << " * / sec " <… in main()
82 timer.reset(); in main()
83 timer.start(); in main()
[all …]
Dsparse_lu.cpp34 timer.reset(); \
36 timer.start(); \
39 } timer.stop(); }
49 BenchTimer timer; timer.start(); in doEigen() local
51 timer.stop(); in doEigen()
53 std::cout << ":\t" << timer.value() << endl; in doEigen()
61 timer.reset(); timer.start(); in doEigen()
63 timer.stop(); in doEigen()
65 std::cout << " solve:\t" << timer.value() << endl; in doEigen()
77 BenchTimer timer; in main() local
[all …]
Dsparse_product.cpp31 timer.reset(); \
33 timer.start(); \
36 } timer.stop(); }
106 BenchTimer timer; in main() local
123 timer.reset(); in main()
124 timer.start(); in main()
127 timer.stop(); in main()
128 std::cout << " a * b:\t" << timer.value() << endl; in main()
130 timer.reset(); in main()
131 timer.start(); in main()
[all …]
Dsparse_cholesky.cpp34 timer.reset(); \
36 timer.start(); \
39 } timer.stop(); }
67 BenchTimer timer; in doEigen() local
68 timer.start(); in doEigen()
70 timer.stop(); in doEigen()
71 std::cout << ":\t" << timer.value() << endl; in doEigen()
82 BenchTimer timer; in main() local
111 BenchTimer timer; in main() local
112 timer.start(); in main()
[all …]
Dsparse_trisolver.cpp30 timer.reset(); \
32 timer.start(); \
35 } timer.stop(); }
61 BenchTimer timer; in main() local
87 std::cout << " colmajor^-1 * b:\t" << timer.value() << endl; in main()
91 std::cout << " rowmajor^-1 * b:\t" << timer.value() << endl; in main()
102 std::cout << " colmajor^-1 * b:\t" << timer.value() << endl; in main()
106 std::cout << " rowmajor^-1 * b:\t" << timer.value() << endl; in main()
130 std::cout << " colmajor^-1 * b:\t" << timer.value() << endl; in main()
148 std::cout << " colmajor^-1 * b:\t" << timer.value() << endl; in main()
[all …]
DbenchVecAdd.cpp34 BenchTimer timer; in main() local
36 timer.reset(); in main()
39 timer.start(); in main()
41 timer.stop(); in main()
43 …std::cout << timer.value() << "s " << (double(size2*REPEAT)/timer.value())/(1024.*1024.*1024.) <<… in main()
53 timer.reset(); in main()
56 timer.start(); in main()
58 timer.stop(); in main()
60 …ut << innersize << " x " << outersize << " " << timer.value() << "s " << (double(size2*REPEAT)/ in main()
67 timer.reset(); in main()
[all …]
Dsparse_transpose.cpp29 timer.reset(); \
31 timer.start(); \
34 } timer.stop(); }
44 BenchTimer timer; in main() local
55 std::cout << " Eigen dense:\t" << timer.value() << endl; in main()
64 std::cout << " Eigen:\t" << timer.value() << endl; in main()
74 std::cout << " CSparse:\t" << timer.value() << endl; in main()
85 std::cout << " GMM:\t\t" << timer.value() << endl; in main()
95 std::cout << " MTL4:\t\t" << timer.value() << endl; in main()
DbenchBlasGemm.cpp107 Eigen::BenchTimer timer; in main() local
117 timer.reset(); in main()
120 timer.start(); in main()
127 timer.stop(); in main()
130 …std::cout << "cblas: " << timer.value() << " (" << 1e-3*floor(1e-6*nbmad/timer.value()) << " GFlop… in main()
132 … std::cout << M << " : " << timer.value() << " ; " << 1e-3*floor(1e-6*nbmad/timer.value()) << "\n"; in main()
143 timer.reset(); in main()
146 timer.start(); in main()
148 timer.stop(); in main()
151 …std::cout << "eigen : " << timer.value() << " (" << 1e-3*floor(1e-6*nbmad/timer.value()) << " GFlo… in main()
[all …]
/external/libcxxabi/test/support/
Dtimer.hpp19 class timer class
25 timer() : m_start(Clock::now()) {} in timer() function in timer
27 timer(timer const &) = delete;
28 timer & operator=(timer const &) = delete;
30 ~timer() in ~timer()
44 class timer class
47 timer() {} in timer() function in timer
48 timer(timer const &) = delete;
49 timer & operator=(timer const &) = delete;
50 ~timer() {} in ~timer()
/external/icu/icu4c/source/tools/ctestfw/unicode/
Dutimer.h172 static int uprv_initFrequency(UTimer* timer) in uprv_initFrequency() argument
174 return QueryPerformanceFrequency(&timer->placeHolder); in uprv_initFrequency()
176 static void uprv_start(UTimer* timer) in uprv_start() argument
178 QueryPerformanceCounter(&timer->start); in uprv_start()
198 static void uprv_start(UTimer* timer) in uprv_start() argument
200 gettimeofday(&timer->start, 0); in uprv_start()
220 utimer_getTime(UTimer* timer){ in utimer_getTime() argument
221 uprv_initFrequency(timer); in utimer_getTime()
222 uprv_start(timer); in utimer_getTime()
249 utimer_getElapsedSeconds(UTimer* timer){ in utimer_getElapsedSeconds() argument
[all …]
/external/mockito/src/test/java/org/mockito/verification/
DTimeoutTest.java25 Timer timer; field in TimeoutTest
31 Timeout t = new Timeout(1, mode, timer); in should_pass_when_verification_passes()
33 when(timer.isCounting()).thenReturn(true); in should_pass_when_verification_passes()
38 InOrder inOrder = inOrder(timer); in should_pass_when_verification_passes()
39 inOrder.verify(timer).start(); in should_pass_when_verification_passes()
40 inOrder.verify(timer).isCounting(); in should_pass_when_verification_passes()
45 Timeout t = new Timeout(1, mode, timer); in should_fail_because_verification_fails()
47 when(timer.isCounting()).thenReturn(true, true, true, false); in should_fail_because_verification_fails()
58 verify(timer, times(4)).isCounting(); in should_fail_because_verification_fails()
63 Timeout t = new Timeout(1, mode, timer); in should_pass_even_if_first_verification_fails()
[all …]
/external/eigen/bench/spbench/
Dsp_solver.cpp27 BenchTimer timer,totaltime; in main() local
39 timer.start(); in main()
53 timer.stop(); in main()
71 cout<< "Time to load the matrix " << timer.value() <<endl; in main()
91 timer.reset(); in main()
92 timer.start(); in main()
102 timer.stop(); in main()
103 float time_comp = timer.value(); in main()
106 timer.reset(); in main()
107 timer.start(); in main()
[all …]
Dtest_sparseLU.cpp38 BenchTimer timer; in main() local
71 timer.start(); in main()
74 timer.stop(); in main()
75 cout << "Time to analyze " << timer.value() << std::endl; in main()
76 timer.reset(); in main()
77 timer.start(); in main()
79 timer.stop(); in main()
80 cout << "Factorize Time " << timer.value() << std::endl; in main()
81 timer.reset(); in main()
82 timer.start(); in main()
[all …]
/external/jemalloc/test/src/
Dtimer.c4 timer_start(timedelta_t *timer) in timer_start() argument
7 nstime_init(&timer->t0, 0); in timer_start()
8 nstime_update(&timer->t0); in timer_start()
12 timer_stop(timedelta_t *timer) in timer_stop() argument
15 nstime_copy(&timer->t1, &timer->t0); in timer_stop()
16 nstime_update(&timer->t1); in timer_stop()
20 timer_usec(const timedelta_t *timer) in timer_usec() argument
24 nstime_copy(&delta, &timer->t1); in timer_usec()
25 nstime_subtract(&delta, &timer->t0); in timer_usec()
/external/syslinux/gpxe/src/include/gpxe/
Dretry.h51 void ( * expired ) ( struct retry_timer *timer, int over );
54 extern void start_timer ( struct retry_timer *timer );
55 extern void start_timer_fixed ( struct retry_timer *timer,
57 extern void stop_timer ( struct retry_timer *timer );
66 static inline void start_timer_nodelay ( struct retry_timer *timer ) { in start_timer_nodelay() argument
67 start_timer_fixed ( timer, 0 ); in start_timer_nodelay()
77 timer_running ( struct retry_timer *timer ) { in timer_running() argument
78 return ( timer->running ); in timer_running()
/external/python/cpython2/Lib/
Dprofile.py92 def _get_time_times(timer=os.times): argument
93 t = timer()
104 def _get_time_resource(timer=resgetrusage): argument
105 t = timer()
152 def __init__(self, timer=None, bias=None): argument
162 if not timer:
164 self.timer = resgetrusage
168 self.timer = self.get_time = time.clock
171 self.timer = os.times
175 self.timer = self.get_time = time.time
[all …]
Dtimeit.py121 def __init__(self, stmt="pass", setup="pass", timer=default_timer): argument
123 self.timer = timer
202 timing = self.inner(it, self.timer)
234 def timeit(stmt="pass", setup="pass", timer=default_timer, argument
237 return Timer(stmt, setup, timer).timeit(number)
239 def repeat(stmt="pass", setup="pass", timer=default_timer, argument
242 return Timer(stmt, setup, timer).repeat(repeat, number)
272 timer = default_timer
289 timer = time.time
291 timer = time.clock
[all …]
/external/python/cpython2/Tools/pybench/
Dpybench.py217 timer = TIMER_PLATFORM_DEFAULT variable in Test
219 def __init__(self, warp=None, calibration_runs=None, timer=None): argument
232 if timer is not None:
233 self.timer = timer
250 return get_timer(self.timer)
271 timer = self.get_timer()
277 t = timer()
280 t = timer() - t
291 t = timer()
294 t = timer() - t
[all …]
/external/mockito/src/main/java/org/mockito/internal/verification/
DVerificationOverTimeImpl.java22 private final Timer timer; field in VerificationOverTimeImpl
50 …meImpl(long pollingPeriodMillis, VerificationMode delegate, boolean returnOnSuccess, Timer timer) { in VerificationOverTimeImpl() argument
54 this.timer = timer; in VerificationOverTimeImpl()
75 timer.start(); in verify()
76 while (timer.isCounting()) { in verify()
112 …return new VerificationOverTimeImpl(pollingPeriodMillis, timer.duration(), verificationMode, retur… in copyWithVerificationMode()
137 return timer; in getTimer()

12345678910>>...19