Home
last modified time | relevance | path

Searched full:timer (Results 1 – 25 of 3829) sorted by relevance

12345678910>>...154

/external/deqp/framework/delibs/deutil/
DdeTimer.c21 * \brief Periodic timer.
39 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()
[all …]
/external/trusty/lk/kernel/
Dtimer.c26 * @brief Kernel timer subsystem
27 * @defgroup timer Timers
29 * The timer subsystem allows functions to be scheduled for later
30 * execution. Each timer object is used to cause one function to
33 * Timer callback functions are called in interrupt context.
42 #include <kernel/timer.h>
45 #include <platform/timer.h>
61 * @brief Initialize a timer object
63 void timer_initialize(timer_t *timer) in timer_initialize() argument
65 *timer = (timer_t)TIMER_INITIAL_VALUE(*timer); in timer_initialize()
[all …]
/external/openthread/tests/unit/
Dtest_trickle_timer.cpp110 TrickleTimerTester timer(*instance); in TestTrickleTimerPlainMode() local
118 // Validate that timer picks a random interval between min and max in TestTrickleTimerPlainMode()
122 timer.Start(TrickleTimer::kModePlainTimer, kMinInterval, kMaxInterval, 0); in TestTrickleTimerPlainMode()
124 VerifyOrQuit(timer.IsRunning()); in TestTrickleTimerPlainMode()
125 VerifyOrQuit(timer.GetIntervalMax() == kMaxInterval); in TestTrickleTimerPlainMode()
126 VerifyOrQuit(timer.GetIntervalMin() == kMinInterval); in TestTrickleTimerPlainMode()
128 interval = timer.GetInterval(); in TestTrickleTimerPlainMode()
135 timer.VerifyTimerDidFire(); in TestTrickleTimerPlainMode()
137 // The plain mode trickle timer restarts with a new random in TestTrickleTimerPlainMode()
140 VerifyOrQuit(timer.IsRunning()); in TestTrickleTimerPlainMode()
[all …]
Dtest_timer.cpp35 #include "common/timer.hpp"
96 …ub-classes `TimerMilli` and provides a handler and a counter to keep track of number of times timer
108 …static void HandleTimerFired(Timer &aTimer) { static_cast<TestTimer &>(aTimer).HandleTimerFired();… in HandleTimerFired()
123 uint32_t mFiredCounter; //< Number of times timer has been fired so far
135 * Test the TimerScheduler's behavior of one timer started and fired.
142 TestTimer<TimerType> timer(*instance); in TestOneTimer() local
144 // Test one Timer basic operation. in TestOneTimer()
152 timer.Start(kTimerInterval); in TestOneTimer()
158 VerifyOrQuit(timer.IsRunning(), "Timer running Failed."); in TestOneTimer()
159 VerifyOrQuit(sTimerOn, "Platform Timer State Failed."); in TestOneTimer()
[all …]
/external/cronet/base/timer/
Dtimer_unittest.cc5 #include "base/timer/timer.h"
33 // The main thread types on which each timer should be tested.
54 // that |timer| would be fired in that test if it wasn't for the deletion.
61 OneShotTimer timer; in RunTest_OneShotTimers() local
62 timer.Start(FROM_HERE, kTestDelay, in RunTest_OneShotTimers()
67 EXPECT_FALSE(timer.IsRunning()); in RunTest_OneShotTimers()
76 auto timer = std::make_unique<OneShotTimer>(); in RunTest_OneShotTimers_Cancel() local
77 auto* timer_ptr = timer.get(); in RunTest_OneShotTimers_Cancel()
79 // This should run before the timer expires. in RunTest_OneShotTimers_Cancel()
81 std::move(timer)); in RunTest_OneShotTimers_Cancel()
[all …]
Dmock_timer_unittest.cc5 #include "base/timer/mock_timer.h"
18 base::MockOneShotTimer timer; in TEST() local
20 timer.Start(FROM_HERE, delay, in TEST()
22 EXPECT_EQ(delay, timer.GetCurrentDelay()); in TEST()
23 EXPECT_TRUE(timer.IsRunning()); in TEST()
24 timer.Fire(); in TEST()
25 EXPECT_FALSE(timer.IsRunning()); in TEST()
31 base::MockRepeatingTimer timer; in TEST() local
33 timer.Start(FROM_HERE, delay, in TEST()
35 timer.Fire(); in TEST()
[all …]
/external/openthread/src/core/common/
Dtimer.hpp31 * This file includes definitions for the multiplexed timer service.
55 * @addtogroup core-timer
58 * This module includes definitions for the multiplexed timer service.
65 * Implements a timer.
68 class Timer : public InstanceLocator, public LinkedListEntry<Timer> class
70 friend class LinkedListEntry<Timer>;
74 * This constant defines maximum delay allowed when starting a timer.
80 * Defines a function reference which is invoked when the timer expires.
82 * @param[in] aTimer A reference to the expired timer instance.
85 typedef void (&Handler)(Timer &aTimer);
[all …]
Dtimer.cpp31 * This file implements a multiplexed timer service on top of the alarm abstraction.
34 #include "timer.hpp"
44 const Timer::Scheduler::AlarmApi TimerMilli::Scheduler::sAlarmMilliApi = {
50 bool Timer::DoesFireBefore(const Timer &aSecondTimer, Time aNow) const in DoesFireBefore()
52 // Indicates whether the fire time of this timer is strictly in DoesFireBefore()
53 // before the fire time of a second given timer. in DoesFireBefore()
58 // Check if one timer is before `now` and the other one is not. in DoesFireBefore()
61 // One timer is before `now` and the other one is not, so if in DoesFireBefore()
62 // this timer's fire time is before `now` then the second fire in DoesFireBefore()
63 // time would be after `now` and this timer would fire before in DoesFireBefore()
[all …]
Dtrickle_timer.hpp31 * This file includes definitions for the trickle timer logic.
40 #include "common/timer.hpp"
45 * @addtogroup core-timer-trickle
48 * This module includes definitions for the trickle timer logic.
55 * Implements a trickle timer.
70 …kModePlainTimer, ///< Operate as a plain periodic timer with random interval selected within min/m…
74 …alue for redundancy constant (aka `k`) to indicate infinity (when used, it disables trickle timer's
81 * Pointer is called when the timer expires (i.e., transmission should happen).
83 * @param[in] aTimer A reference to the trickle timer.
98 * Indicates whether or not the trickle timer instance is running.
[all …]
/external/sdv/vsomeip/third_party/boost/asio/include/boost/asio/detail/
Dtimer_queue.hpp46 // Per-timer data.
59 // The operations waiting on the timer.
62 // The index of the timer in the heap.
77 // Add a new timer to the queue. Returns true if this is the timer that is
80 bool enqueue_timer(const time_type& time, per_timer_data& timer, wait_op* op) in enqueue_timer() argument
82 // Enqueue the timer object. in enqueue_timer()
83 if (timer.prev_ == 0 && &timer != timers_) in enqueue_timer()
88 timer.heap_index_ = (std::numeric_limits<std::size_t>::max)(); in enqueue_timer()
92 // Put the new timer at the correct position in the heap. This is done in enqueue_timer()
94 timer.heap_index_ = heap_.size(); in enqueue_timer()
[all …]
/external/libchrome/base/timer/
Dtimer_unittest.cc5 #include "base/timer/timer.h"
36 // The message loops on which each timer should be tested.
57 // A basic helper class that can start a one-shot timer and signal a
58 // WaitableEvent when this timer fires.
98 // until the timer fires and to change task runner for the timer.
225 // This should run before the timer expires. in RunTest_OneShotTimers_Cancel()
228 // Now start the timer. in RunTest_OneShotTimers_Cancel()
264 // This should run before the timer expires. in RunTest_RepeatingTimer_Cancel()
267 // Now start the timer. in RunTest_RepeatingTimer_Cancel()
296 // If Delay is never called, the timer shouldn't go off. in RunTest_DelayTimer_NoCall()
[all …]
Dtimer.cc5 #include "base/timer/timer.h"
20 // BaseTimerTaskInternal is a simple delegate for scheduling a callback to Timer
23 // - abandoned (orphaned) by Timer.
26 explicit BaseTimerTaskInternal(Timer* timer) in BaseTimerTaskInternal() argument
27 : timer_(timer) { in BaseTimerTaskInternal()
32 // destructed. If so, don't leave Timer with a dangling pointer in ~BaseTimerTaskInternal()
43 // |this| will be deleted by the task runner, so Timer needs to forget us: in Run()
46 // Although Timer should not call back into |this|, let's clear |timer_| in Run()
48 Timer* timer = timer_; in Run() local
50 timer->RunScheduledTask(); in Run()
[all …]
/external/crosvm/base/src/
Dtimer.rs21 /// A trait for timer objects that delivers timer expiration
24 /// Sets the timer to expire after `dur`. If `interval` is not `None` and non-zero it
26 /// the timer will expire just once. Cancels any existing duration and repeating interval.
29 /// Waits until the timer expires.
32 /// After a timer is triggered from an EventContext, mark the timer as having been waited for.
33 /// If a timer is not marked waited, it will immediately trigger the event context again. This
34 /// does not need to be called after calling Timer::wait.
36 /// Returns true if the timer has been adjusted since the EventContext was triggered by this
37 /// timer.
40 /// Disarms the timer.
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/lib/event_engine/posix_engine/
Dtimer.cc21 #include "src/core/lib/event_engine/posix_engine/timer.h"
71 void ListJoin(Timer* head, Timer* timer) { in ListJoin() argument
72 timer->next = head; in ListJoin()
73 timer->prev = head->prev; in ListJoin()
74 timer->next->prev = timer->prev->next = timer; in ListJoin()
77 void ListRemove(Timer* timer) { in ListRemove() argument
78 timer->next->prev = timer->prev; in ListRemove()
79 timer->prev->next = timer->next; in ListRemove()
108 void TimerList::TimerInit(Timer* timer, grpc_core::Timestamp deadline, in TimerInit() argument
111 Shard* shard = &shards_[grpc_core::HashPointer(timer, num_shards_)]; in TimerInit()
[all …]
/external/grpc-grpc/src/core/lib/event_engine/posix_engine/
Dtimer.cc21 #include "src/core/lib/event_engine/posix_engine/timer.h"
71 void ListJoin(Timer* head, Timer* timer) { in ListJoin() argument
72 timer->next = head; in ListJoin()
73 timer->prev = head->prev; in ListJoin()
74 timer->next->prev = timer->prev->next = timer; in ListJoin()
77 void ListRemove(Timer* timer) { in ListRemove() argument
78 timer->next->prev = timer->prev; in ListRemove()
79 timer->prev->next = timer->next; in ListRemove()
108 void TimerList::TimerInit(Timer* timer, grpc_core::Timestamp deadline, in TimerInit() argument
111 Shard* shard = &shards_[grpc_core::HashPointer(timer, num_shards_)]; in TimerInit()
[all …]
/external/sdv/vsomeip/third_party/boost/asio/include/boost/asio/
Dbasic_deadline_timer.hpp39 /// Provides waitable timer functionality.
42 * blocking or asynchronous wait for a timer to expire.
44 * A deadline timer is always in one of two states: "expired" or "not expired".
45 * If the wait() or async_wait() function is called on an expired timer, the
57 * // Construct a timer without setting an expiry time.
58 * boost::asio::deadline_timer timer(my_context);
61 * timer.expires_from_now(boost::posix_time::seconds(5));
63 * // Wait for the timer to expire.
64 * timer.wait();
74 * // Timer expired.
[all …]
Dbasic_waitable_timer.hpp50 /// Provides waitable timer functionality.
53 * blocking or asynchronous wait for a timer to expire.
55 * A waitable timer is always in one of two states: "expired" or "not expired".
56 * If the wait() or async_wait() function is called on an expired timer, the
62 * @note This waitable timer functionality is for use with the C++11 standard
72 * // Construct a timer without setting an expiry time.
73 * boost::asio::steady_timer timer(my_context);
76 * timer.expires_after(std::chrono::seconds(5));
78 * // Wait for the timer to expire.
79 * timer.wait();
[all …]
/external/grpc-grpc/src/core/lib/iomgr/
Dtimer_generic.cc42 #include "src/core/lib/iomgr/timer.h"
51 grpc_core::TraceFlag grpc_timer_trace(false, "timer");
54 // A "timer shard". Contains a 'heap' and a 'list' of timers. All timers with
59 // The 'queue_deadline_cap' gets recomputed periodically based on the timer
68 // The deadline of the next timer due in this shard.
80 // Array of timer shards. Whenever a timer (grpc_timer *) is added, its address
81 // is hashed to select the timer shard to add the timer to
84 // Maintains a sorted list of timer shards (sorted by their min_deadline, i.e
85 // the deadline of the next timer in each shard).
91 // == DEBUG ONLY: hash table for duplicate timer detection ==
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dtimer_generic.cc42 #include "src/core/lib/iomgr/timer.h"
51 grpc_core::TraceFlag grpc_timer_trace(false, "timer");
54 // A "timer shard". Contains a 'heap' and a 'list' of timers. All timers with
59 // The 'queue_deadline_cap' gets recomputed periodically based on the timer
68 // The deadline of the next timer due in this shard.
80 // Array of timer shards. Whenever a timer (grpc_timer *) is added, its address
81 // is hashed to select the timer shard to add the timer to
84 // Maintains a sorted list of timer shards (sorted by their min_deadline, i.e
85 // the deadline of the next timer in each shard).
91 // == DEBUG ONLY: hash table for duplicate timer detection ==
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DTimer.h1 //===-- llvm/Support/Timer.h - Interval Timing Support ----------*- C++ -*-===//
22 class Timer; variable
72 /// the Timer will print the amount of time it has captured to standard error
73 /// when the last timer is destroyed, otherwise it is printed when its
76 class Timer {
81 bool Running; ///< Is the timer currently running?
82 bool Triggered; ///< Has the timer ever been triggered?
83 TimerGroup *TG = nullptr; ///< The TimerGroup this Timer is in.
85 Timer **Prev; ///< Pointer to \p Next of previous timer in group.
86 Timer *Next; ///< Next timer in the group.
[all …]
/external/renderscript-intrinsics-replacement-toolkit/test-app/src/main/java/com/google/android/renderscript_test/
DAllTests.kt100 fun testOne(intrinsic: Intrinsic, timer: TimingTracker) = in testOne()
111 }.let { test -> test(timer) } in testOne()
114 private fun testBlend(timer: TimingTracker): Boolean { in testBlend()
116 testOneBitmapBlend(timer, testImage1, testImage2, mode, null) and in testBlend()
118 timer, testImage1, testImage2, mode, in testBlend()
122 testOneRandomBlend(timer, sizeX, sizeY, mode, restriction) in testBlend()
129 timer: TimingTracker, in testOneRandomBlend()
142 timer.measure("IntrinsicBlend") { in testOneRandomBlend()
148 timer.measure("ToolkitBlend") { in testOneRandomBlend()
153 timer.measure("ReferenceBlend") { in testOneRandomBlend()
[all …]
/external/llvm/include/llvm/Support/
DTimer.h1 //===-- llvm/Support/Timer.h - Interval Timing Support ----------*- C++ -*-===//
22 class Timer; variable
70 /// Timer - This class is used to track the amount of time spent between
73 /// By default, the Timer will print the amount of time it has captured to
74 /// standard error when the last timer is destroyed, otherwise it is printed
78 class Timer {
82 bool Running; // Is the timer currently running?
83 bool Triggered; // Has the timer ever been triggered?
84 TimerGroup *TG; // The TimerGroup this Timer is in.
86 Timer **Prev, *Next; // Doubly linked list of timers in the group.
[all …]
/external/linux-kselftest/tools/testing/selftests/kvm/include/aarch64/
Darch_timer.h3 * ARM Generic Timer specific interface
34 static inline uint64_t timer_get_cntct(enum arch_timer timer) in timer_get_cntct() argument
38 switch (timer) { in timer_get_cntct()
44 GUEST_ASSERT_1(0, timer); in timer_get_cntct()
51 static inline void timer_set_cval(enum arch_timer timer, uint64_t cval) in timer_set_cval() argument
53 switch (timer) { in timer_set_cval()
61 GUEST_ASSERT_1(0, timer); in timer_set_cval()
67 static inline uint64_t timer_get_cval(enum arch_timer timer) in timer_get_cval() argument
69 switch (timer) { in timer_get_cval()
75 GUEST_ASSERT_1(0, timer); in timer_get_cval()
[all …]
/external/eigen/bench/
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 …]
/external/libchrome/components/timers/
Dalarm_timer_unittest.cc25 // regular Timer so it should pass the same tests as the Timer class.
121 // This should run before the timer expires. in TEST()
124 // Now start the timer. in TEST()
139 // If underlying timer does not handle this properly, we will crash or fail
179 // This should run before the timer expires. in TEST()
182 // Now start the timer. in TEST()
231 timers::SimpleAlarmTimer timer; in TEST() local
232 EXPECT_FALSE(timer.IsRunning()); in TEST()
233 timer.Start(FROM_HERE, base::TimeDelta::FromDays(1), base::DoNothing()); in TEST()
235 // Allow FileDescriptorWatcher to start watching the timer. Without this, a in TEST()
[all …]

12345678910>>...154