Home
last modified time | relevance | path

Searched refs:TimePoint (Results 1 – 25 of 121) sorted by relevance

12345

/third_party/flutter/engine/flutter/fml/time/
Dtime_point.h22 class TimePoint {
25 constexpr TimePoint() = default;
27 static TimePoint Now();
29 static constexpr TimePoint Min() { in Min()
30 return TimePoint(std::numeric_limits<int64_t>::min()); in Min()
33 static constexpr TimePoint Max() { in Max()
34 return TimePoint(std::numeric_limits<int64_t>::max()); in Max()
37 static constexpr TimePoint FromEpochDelta(TimeDelta ticks) { in FromEpochDelta()
38 return TimePoint(ticks.ToNanoseconds()); in FromEpochDelta()
44 TimeDelta operator-(TimePoint other) const {
[all …]
Dtime_point.cc20 TimePoint TimePoint::Now() { in Now()
21 return TimePoint(zx_clock_get_monotonic()); in Now()
26 TimePoint TimePoint::Now() {
34 return TimePoint(
Dtime_point_unittest.cc12 TEST(TimePoint, Control) { in TEST() argument
13 EXPECT_LT(TimePoint::Min(), TimePoint::Now()); in TEST()
14 EXPECT_GT(TimePoint::Max(), TimePoint::Now()); in TEST()
/third_party/boost/boost/thread/concurrent_queues/
Dsync_timed_queue.hpp30 template <class T, class Clock = chrono::steady_clock, class TimePoint=typename Clock::time_point>
35 typedef TimePoint time_point;
105 template <class T, class Clock = chrono::steady_clock, class TimePoint=typename Clock::time_point>
107 : private sync_priority_queue<detail::scheduled_type<T, Clock, TimePoint> >
109 typedef detail::scheduled_type<T, Clock, TimePoint> stype;
166 queue_op_status wait_to_pull_until(unique_lock<mutex>&, TimePoint const& tp);
188 template <class T, class Clock, class TimePoint>
190 …void sync_timed_queue<T, Clock, TimePoint>::push(const T& elem, chrono::time_point<clock,Duration>… in push()
195 template <class T, class Clock, class TimePoint>
197 …void sync_timed_queue<T, Clock, TimePoint>::push(const T& elem, chrono::duration<Rep,Period> const… in push()
[all …]
/third_party/boost/libs/thread/test/
Dtest_9079_b.cpp16 typedef Clock::time_point TimePoint; typedef
18 inline TimePoint real_time_now() in real_time_now()
25 TimePoint m_next_tick_time;
34 TimePoint spawn_tasks() // note that in my app, this call takes more time than here in spawn_tasks()
37 const TimePoint now = real_time_now(); in spawn_tasks()
66 const TimePoint next_task_spawn_time = foo.spawn_tasks(); in main()
68 const TimePoint now = real_time_now(); in main()
69 const TimePoint next_minimum_spawn_time = now + MIN_TIME_TASKS_SPAWN_FREQUENCY; in main()
70 const TimePoint next_spawn_time = next_task_spawn_time > TimePoint() in main()
74 const TimePoint::duration wait_time = next_spawn_time - now; in main()
/third_party/flutter/engine/flutter/shell/platform/fuchsia/flutter/
Dvsync_waiter.cc43 static fml::TimePoint SnapToNextPhase(fml::TimePoint value, in SnapToNextPhase()
44 fml::TimePoint phase, in SnapToNextPhase()
56 fml::TimePoint now = fml::TimePoint::Now(); in AwaitVSync()
57 fml::TimePoint next_vsync = SnapToNextPhase(now, vsync_info.presentation_time, in AwaitVSync()
81 fml::TimePoint now = fml::TimePoint::Now(); in FireCallbackNow()
82 fml::TimePoint next_vsync = SnapToNextPhase(now, vsync_info.presentation_time, in FireCallbackNow()
84 fml::TimePoint previous_vsync = next_vsync - vsync_info.presentation_interval; in FireCallbackNow()
/third_party/flutter/engine/flutter/fml/
Dmessage_loop_task_queues_unittests.cc16 using WakeUpCall = std::function<void(const fml::TimePoint)>;
20 void WakeUp(fml::TimePoint time_point) override { wake_up_call_(time_point); } in WakeUp()
33 const auto time = fml::TimePoint::Max(); in TEST()
38 new TestWakeable([&time](fml::TimePoint wake_time) { in TEST()
52 queue_id, [] {}, fml::TimePoint::Now()); in TEST()
54 queue_id, [] {}, fml::TimePoint::Max()); in TEST()
66 queue_id, [&test_val]() { test_val = 1; }, fml::TimePoint::Now()); in TEST()
70 queue_id, [&test_val]() { test_val = 2; }, fml::TimePoint::Now()); in TEST()
117 [&num_wakes](fml::TimePoint wake_time) { ++num_wakes; })); in TEST()
120 queue_id, []() {}, fml::TimePoint::Now()); in TEST()
[all …]
Dmessage_loop_task_queues_merge_unmerge_unittests.cc16 using WakeUpCall = std::function<void(const fml::TimePoint)>;
20 void WakeUp(fml::TimePoint time_point) override { wake_up_call_(time_point); } in WakeUp()
34 queue_id_1, []() {}, fml::TimePoint::Now()); in TEST()
39 queue_id_1, []() {}, fml::TimePoint::Now()); in TEST()
53 queue_id_2, []() {}, fml::TimePoint::Now()); in TEST()
68 queue_id_1, []() {}, fml::TimePoint::Now()); in TEST()
70 queue_id_2, []() {}, fml::TimePoint::Now()); in TEST()
120 new TestWakeable([&](fml::TimePoint wake_time) { latch.CountDown(); })); in TEST()
123 new TestWakeable([&](fml::TimePoint wake_time) { latch.CountDown(); })); in TEST()
126 queue_id_1, []() {}, fml::TimePoint::Now()); in TEST()
[all …]
Ddelayed_task.h17 DelayedTask(size_t order, fml::closure task, fml::TimePoint target_time);
25 fml::TimePoint GetTargetTime() const;
32 fml::TimePoint target_time_;
Dmessage_loop_unittests.cc117 fml::TimePoint::Now() + fml::TimeDelta::FromMilliseconds(2); in TEST()
160 auto begin = fml::TimePoint::Now(); in TEST()
163 auto delta = fml::TimePoint::Now() - begin; in TEST()
182 auto begin = fml::TimePoint::Now(); in TEST()
185 auto delta = fml::TimePoint::Now() - begin; in TEST()
192 fml::TimePoint::Now() + fml::TimeDelta::FromMilliseconds(5)); in TEST()
206 auto begin = fml::TimePoint::Now(); in TEST()
209 auto delta = fml::TimePoint::Now() - begin; in TEST()
233 auto begin = fml::TimePoint::Now(); in TEST()
236 auto delta = fml::TimePoint::Now() - begin; in TEST()
/third_party/grpc/include/grpcpp/impl/codegen/
Dtime.h40 class TimePoint {
46 TimePoint(const T& /*time*/) = delete;
51 class TimePoint<gpr_timespec> {
54 TimePoint(const gpr_timespec& time) : time_(time) {} in TimePoint() function
75 class TimePoint<std::chrono::system_clock::time_point> {
78 TimePoint(const std::chrono::system_clock::time_point& time) { in TimePoint() function
/third_party/flutter/engine/flutter/fml/synchronization/
Dwaitable_event.cc31 TimePoint start = TimePoint::Now(); in WaitWithTimeoutImpl()
43 TimePoint now = TimePoint::Now(); in WaitWithTimeoutImpl()
85 TimePoint start = TimePoint::Now(); in WaitWithTimeout()
97 TimePoint now = TimePoint::Now(); in WaitWithTimeout()
/third_party/flutter/engine/flutter/shell/common/
Dvsync_waiter_fallback.cc14 static fml::TimePoint SnapToNextTick(fml::TimePoint value, in SnapToNextTick()
15 fml::TimePoint tick_phase, in SnapToNextTick()
26 : VsyncWaiter(std::move(task_runners)), phase_(fml::TimePoint::Now()) {} in VsyncWaiterFallback()
42 SnapToNextTick(fml::TimePoint::Now(), phase_, kSingleFrameInterval); in AwaitVSync()
Danimator.cc88 static int64_t FxlToDartOrEarlier(fml::TimePoint time) { in FxlToDartOrEarlier()
90 fml::TimePoint fxl_now = fml::TimePoint::Now(); in FxlToDartOrEarlier()
94 void Animator::BeginFrame(fml::TimePoint frame_start_time, in BeginFrame()
95 fml::TimePoint frame_target_time) { in BeginFrame()
226 [self = weak_factory_.GetWeakPtr()](fml::TimePoint frame_start_time, in AwaitVSync()
227 fml::TimePoint frame_target_time) { in AwaitVSync()
Dvsync_waiter.h22 using Callback = std::function<void(fml::TimePoint frame_start_time,
23 fml::TimePoint frame_target_time)>;
51 void FireCallback(fml::TimePoint frame_start_time,
52 fml::TimePoint frame_target_time);
Danimator.h33 virtual void OnAnimatorBeginFrame(fml::TimePoint frame_time) = 0;
68 void BeginFrame(fml::TimePoint frame_start_time,
69 fml::TimePoint frame_target_time);
82 fml::TimePoint last_begin_frame_time_;
/third_party/flutter/engine/flutter/flow/layers/
Dlayer_tree.h50 void RecordBuildTime(fml::TimePoint begin_start);
51 fml::TimePoint build_start() const { return build_start_; } in build_start()
52 fml::TimePoint build_finish() const { return build_finish_; } in build_finish()
77 fml::TimePoint build_start_;
78 fml::TimePoint build_finish_;
/third_party/flutter/engine/flutter/fml/platform/win/
Dmessage_loop_win.cc29 WakeUp(fml::TimePoint::Now()); in Terminate()
32 void MessageLoopWin::WakeUp(fml::TimePoint time_point) { in WakeUp()
34 fml::TimePoint now = fml::TimePoint::Now(); in WakeUp()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DChrono.h33 using TimePoint = std::chrono::time_point<std::chrono::system_clock, D>; variable
36 LLVM_ATTRIBUTE_ALWAYS_INLINE inline std::time_t toTimeT(TimePoint<> TP) { in toTimeT()
43 LLVM_ATTRIBUTE_ALWAYS_INLINE inline TimePoint<std::chrono::seconds>
51 raw_ostream &operator<<(raw_ostream &OS, sys::TimePoint<> TP);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DChrono.h33 using TimePoint = std::chrono::time_point<std::chrono::system_clock, D>; variable
36 inline std::time_t toTimeT(TimePoint<> TP) { in toTimeT()
43 inline TimePoint<std::chrono::seconds>
50 inline TimePoint<>
59 raw_ostream &operator<<(raw_ostream &OS, sys::TimePoint<> TP);
70 struct format_provider<sys::TimePoint<>> {
71 static void format(const sys::TimePoint<> &TP, llvm::raw_ostream &OS,
/third_party/skia/third_party/externals/swiftshader/third_party/marl/include/marl/
Dscheduler.h48 using TimePoint = std::chrono::system_clock::time_point;
293 inline Fiber* take(const TimePoint& timeout);
297 inline TimePoint next() const;
300 inline void add(const TimePoint& timeout, Fiber* fiber);
310 TimePoint timepoint;
315 containers::unordered_map<Fiber*, TimePoint> fibers;
350 bool wait(marl::lock& lock, const TimePoint* timeout, const Predicate& pred)
357 bool wait(const TimePoint* timeout) EXCLUDES(work.mutex);
362 void suspend(const TimePoint* timeout) REQUIRES(work.mutex);
553 using ToDuration = typename TimePoint::duration; in wait()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DChrono.cpp25 static inline struct tm getStructTM(TimePoint<> TP) { in getStructTM()
43 raw_ostream &operator<<(raw_ostream &OS, TimePoint<> TP) { in operator <<()
53 void format_provider<TimePoint<>>::format(const TimePoint<> &T, raw_ostream &OS, in format()
56 TimePoint<seconds> Truncated = time_point_cast<seconds>(T); in format()
/third_party/flutter/engine/flutter/common/
Dsettings.h35 fml::TimePoint Get(Phase phase) const { return data_[phase]; } in Get()
36 fml::TimePoint Set(Phase phase, fml::TimePoint value) { in Set()
41 fml::TimePoint data_[kCount];
/third_party/grpc/include/grpcpp/
Dalarm_impl.h52 SetInternal(cq, ::grpc::TimePoint<T>(deadline).raw_time(), tag); in Alarm()
61 SetInternal(cq, ::grpc::TimePoint<T>(deadline).raw_time(), tag); in Set()
86 SetInternal(::grpc::TimePoint<T>(deadline).raw_time(), std::move(f)); in Set()
102 alarm_->SetInternal(::grpc::TimePoint<T>(deadline).raw_time(), in Set()
Dalarm.h52 SetInternal(cq, ::grpc::TimePoint<T>(deadline).raw_time(), tag); in Alarm()
61 SetInternal(cq, ::grpc::TimePoint<T>(deadline).raw_time(), tag); in Set()
86 SetInternal(::grpc::TimePoint<T>(deadline).raw_time(), std::move(f)); in Set()
102 alarm_->SetInternal(::grpc::TimePoint<T>(deadline).raw_time(), in Set()

12345