Home
last modified time | relevance | path

Searched refs:clock_type (Results 1 – 25 of 68) sorted by relevance

123

/external/grpc-grpc/src/core/lib/gpr/
Dtime.cc31 GPR_ASSERT(a.clock_type == b.clock_type); in gpr_time_cmp()
50 out.clock_type = type; in gpr_time_0()
58 out.clock_type = type; in gpr_inf_future()
66 out.clock_type = type; in gpr_inf_past()
89 out.clock_type = type; in to_seconds_from_sub_second_time()
105 out.clock_type = type; in to_seconds_from_above_second_time()
137 GPR_ASSERT(b.clock_type == GPR_TIMESPAN); in gpr_time_add()
138 sum.clock_type = a.clock_type; in gpr_time_add()
148 sum = gpr_inf_future(sum.clock_type); in gpr_time_add()
151 sum = gpr_inf_past(sum.clock_type); in gpr_time_add()
[all …]
Dtime_posix.cc48 gpr_clock_type clock_type) { in gpr_from_timespec() argument
57 rv.clock_type = clock_type; in gpr_from_timespec()
67 static gpr_timespec now_impl(gpr_clock_type clock_type) { in now_impl() argument
69 GPR_ASSERT(clock_type != GPR_TIMESPAN); in now_impl()
70 if (clock_type == GPR_CLOCK_PRECISE) { in now_impl()
77 syscall(SYS_clock_gettime, clockid_for_gpr_clock[clock_type], &now); in now_impl()
79 clock_gettime(clockid_for_gpr_clock[clock_type], &now); in now_impl()
81 return gpr_from_timespec(now, clock_type); in now_impl()
108 now.clock_type = clock; in now_impl()
131 gpr_timespec (*gpr_now_impl)(gpr_clock_type clock_type) = now_impl;
[all …]
Dtime_windows.cc49 now_tv.clock_type = clock; in now_impl()
71 gpr_timespec (*gpr_now_impl)(gpr_clock_type clock_type) = now_impl;
73 gpr_timespec gpr_now(gpr_clock_type clock_type) { in gpr_now() argument
74 return gpr_now_impl(clock_type); in gpr_now()
85 now = gpr_now(until.clock_type); in gpr_sleep_until()
Dtime_precise.cc66 clk->clock_type = GPR_CLOCK_PRECISE; in gpr_precise_clock_now()
76 clk->clock_type = GPR_CLOCK_PRECISE; in gpr_precise_clock_now()
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/sources/
Drx-interval.hpp54 …interval_initial_type(rxsc::scheduler::clock_type::time_point i, rxsc::scheduler::clock_type::dura… in interval_initial_type()
60 rxsc::scheduler::clock_type::time_point initial;
61 rxsc::scheduler::clock_type::duration period;
66 …interval(rxsc::scheduler::clock_type::time_point i, rxsc::scheduler::clock_type::duration p, coord… in interval()
100 std::is_convertible<Duration, rxsc::scheduler::clock_type::duration>::value,
123 auto interval(rxsc::scheduler::clock_type::duration period, Coordination cn) in interval()
125 … detail::defer_interval<rxsc::scheduler::clock_type::duration, Coordination>::value, in interval()
126 …typename detail::defer_interval<rxsc::scheduler::clock_type::duration, Coordination>::observabl… in interval()
127 …return detail::defer_interval<rxsc::scheduler::clock_type::duration, Coordination>::make(… in interval()
133 auto interval(rxsc::scheduler::clock_type::time_point when, Duration period) in interval()
[all …]
Drx-timer.hpp54 timer_initial_type(rxsc::scheduler::clock_type::time_point t, coordination_type cn) in timer_initial_type()
59 rxsc::scheduler::clock_type::time_point when;
64 timer(rxsc::scheduler::clock_type::time_point t, coordination_type cn) in timer()
68 timer(rxsc::scheduler::clock_type::duration p, coordination_type cn) in timer()
69 : initial(rxsc::scheduler::clock_type::time_point(), std::move(cn)) in timer()
101 std::is_convertible<TimePointOrDuration, rxsc::scheduler::clock_type::time_point>::value ||
102 std::is_convertible<TimePointOrDuration, rxsc::scheduler::clock_type::duration>::value,
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/schedulers/
Drx-runloop.hpp18 typedef scheduler::clock_type clock_type; typedef
21 clock_type::time_point> queue_item_time;
38 std::function<void(clock_type::time_point)> notify_earlier_wakeup;
69 virtual clock_type::time_point now() const { in now()
70 return clock_type::now(); in now()
77 virtual void schedule(clock_type::time_point when, const schedulable& scbl) const { in schedule()
102 virtual clock_type::time_point now() const { in now()
103 return clock_type::now(); in now()
136 typedef scheduler::clock_type clock_type; typedef in rxcpp::schedulers::run_loop
158 clock_type::time_point now() const { in now()
[all …]
Drx-currentthread.hpp20 typedef scheduler_base::clock_type clock;
152 virtual clock_type::time_point now() const { in now()
153 return clock_type::now(); in now()
160 virtual void schedule(clock_type::time_point when, const schedulable& scbl) const { in schedule()
178 virtual clock_type::time_point now() const { in now()
179 return clock_type::now(); in now()
186 virtual void schedule(clock_type::time_point when, const schedulable& scbl) const { in schedule()
254 virtual clock_type::time_point now() const { in now()
255 return clock_type::now(); in now()
Drx-immediate.hpp33 virtual clock_type::time_point now() const { in now()
34 return clock_type::now(); in now()
45 virtual void schedule(clock_type::time_point when, const schedulable& scbl) const { in schedule()
66 virtual clock_type::time_point now() const { in now()
67 return clock_type::now(); in now()
Drx-eventloop.hpp27 typename clock_type::time_point> queue_item_time;
50 virtual clock_type::time_point now() const { in now()
51 return clock_type::now(); in now()
58 virtual void schedule(clock_type::time_point when, const schedulable& scbl) const { in schedule()
97 virtual clock_type::time_point now() const { in now()
98 return clock_type::now(); in now()
Drx-newthread.hpp34 typename clock_type::time_point> queue_item_time;
116 if (clock_type::now() < peek.when) { in new_worker()
129 virtual clock_type::time_point now() const { in now()
130 return clock_type::now(); in now()
137 virtual void schedule(clock_type::time_point when, const schedulable& scbl) const { in schedule()
164 virtual clock_type::time_point now() const { in now()
165 return clock_type::now(); in now()
Drx-test.hpp20 typedef scheduler_interface::clock_type clock_type; typedef in rxcpp::schedulers::detail::test_type
29 clock_type::time_point now() const { in now()
46 virtual clock_type::time_point to_time_point(long absolute) const in to_time_point()
48 return clock_type::time_point(std::chrono::milliseconds(absolute)); in to_time_point()
51 virtual long to_relative(clock_type::duration d) const in to_relative()
73 virtual clock_type::time_point now() const { in now()
81 virtual void schedule(clock_type::time_point when, const schedulable& scbl) const { in schedule()
131 virtual clock_type::time_point now() const { in now()
144 clock_type::time_point to_time_point(long absolute) const { in to_time_point()
373 typedef detail::test_type::clock_type clock_type; typedef in rxcpp::schedulers::test
[all …]
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/
Drx-scheduler.hpp154 typedef std::chrono::steady_clock clock_type; typedef
169 typedef scheduler_base::clock_type clock_type; typedef in rxcpp::schedulers::worker_interface
173 virtual clock_type::time_point now() const = 0;
176 virtual void schedule(clock_type::time_point when, const schedulable& scbl) const = 0;
208 typedef scheduler_base::clock_type clock_type; typedef in rxcpp::schedulers::worker
253 inline clock_type::time_point now() const { in now()
264 inline void schedule(clock_type::time_point when, const schedulable& scbl) const { in schedule()
273 inline void schedule(clock_type::duration when, const schedulable& scbl) const { in schedule()
280 …inline void schedule_periodically(clock_type::time_point initial, clock_type::duration period, con… in schedule_periodically()
287 …inline void schedule_periodically(clock_type::duration initial, clock_type::duration period, const… in schedule_periodically()
[all …]
/external/Reactive-Extensions/RxCpp/Rx/v2/test/operators/
Dtimestamp.cpp8 typedef rxsc::detail::test_type::clock_type::time_point time_point;
46 typedef rxsc::detail::test_type::clock_type::time_point time_point;
89 typedef rxsc::detail::test_type::clock_type clock_type; typedef
90 typedef clock_type::time_point time_point;
115 … on_timestamp.next(210, std::make_pair(2, clock_type::time_point(milliseconds(210)))),
116 … on_timestamp.next(240, std::make_pair(3, clock_type::time_point(milliseconds(240)))),
137 typedef rxsc::detail::test_type::clock_type clock_type; typedef
138 typedef clock_type::time_point time_point;
165 … on_timestamp.next(210, std::make_pair(2, clock_type::time_point(milliseconds(210)))),
166 … on_timestamp.next(240, std::make_pair(3, clock_type::time_point(milliseconds(240)))),
Dtime_interval.cpp8 typedef rxsc::detail::test_type::clock_type::time_point::duration duration;
46 typedef rxsc::detail::test_type::clock_type::time_point::duration duration;
89 typedef rxsc::detail::test_type::clock_type clock_type; typedef
90 typedef clock_type::time_point::duration duration;
137 typedef rxsc::detail::test_type::clock_type clock_type; typedef
138 typedef clock_type::time_point::duration duration;
/external/grpc-grpc/include/grpc/support/
Dtime.h69 GPRAPI gpr_timespec gpr_time_from_micros(int64_t x, gpr_clock_type clock_type);
70 GPRAPI gpr_timespec gpr_time_from_nanos(int64_t x, gpr_clock_type clock_type);
71 GPRAPI gpr_timespec gpr_time_from_millis(int64_t x, gpr_clock_type clock_type);
72 GPRAPI gpr_timespec gpr_time_from_seconds(int64_t x, gpr_clock_type clock_type);
73 GPRAPI gpr_timespec gpr_time_from_minutes(int64_t x, gpr_clock_type clock_type);
74 GPRAPI gpr_timespec gpr_time_from_hours(int64_t x, gpr_clock_type clock_type);
/external/grpc-grpc/src/core/lib/iomgr/
Dexec_ctx.cc77 gpr_clock_type clock_type) { in grpc_millis_to_timespec() argument
81 return gpr_inf_future(clock_type); in grpc_millis_to_timespec()
84 return gpr_inf_past(clock_type); in grpc_millis_to_timespec()
87 if (clock_type == GPR_TIMESPAN) { in grpc_millis_to_timespec()
90 return gpr_time_add(gpr_convert_clock_type(g_start_time, clock_type), in grpc_millis_to_timespec()
96 gpr_convert_clock_type(ts, g_start_time.clock_type)); in grpc_timespec_to_millis_round_down()
101 gpr_convert_clock_type(ts, g_start_time.clock_type)); in grpc_timespec_to_millis_round_up()
/external/grpc-grpc/src/csharp/Grpc.Core/Internal/
DTimespec.cs41 public Timespec(long tv_sec, int tv_nsec, ClockType clock_type) in Timespec()
45 this.clock_type = clock_type; in Timespec()
50 private ClockType clock_type; field
130 GrpcPreconditions.CheckState(clock_type == ClockType.Realtime); in ToDateTime()
/external/grpc-grpc/test/core/transport/
Dbdp_estimator_test.cc34 extern gpr_timespec (*gpr_now_impl)(gpr_clock_type clock_type);
41 gpr_timespec fake_gpr_now(gpr_clock_type clock_type) { in fake_gpr_now() argument
45 ts.clock_type = clock_type; in fake_gpr_now()
/external/grpc-grpc/src/cpp/util/
Dtime_cc.cc44 to->clock_type = GPR_CLOCK_REALTIME; in Timepoint2Timespec()
60 to->clock_type = GPR_CLOCK_REALTIME; in TimepointHR2Timespec()
64 if (gpr_time_cmp(t, gpr_inf_future(t.clock_type)) == 0) { in Timespec2Timepoint()
/external/linux-kselftest/tools/testing/selftests/timers/
Dinconsistency-check.c94 int consistency_test(int clock_type, unsigned long seconds) in consistency_test() argument
102 clock_gettime(clock_type, &list[0]); in consistency_test()
114 clock_gettime(clock_type, &list[i]); in consistency_test()
/external/kernel-headers/original/uapi/linux/hdlc/
Dioctl.h42 unsigned int clock_type; /* internal, external, TX-internal etc. */ member
48 unsigned int clock_type; /* internal, external, TX-internal etc. */ member
/external/iproute2/include/uapi/linux/hdlc/
Dioctl.h42 unsigned int clock_type; /* internal, external, TX-internal etc. */ member
48 unsigned int clock_type; /* internal, external, TX-internal etc. */ member
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/subjects/
Drx-replaysubject.hpp20 typedef rxu::maybe<rxsc::scheduler::clock_type::duration> period_type;
21 typedef rxsc::scheduler::clock_type::time_point time_point_type;
148 …replay(rxsc::scheduler::clock_type::duration period, Coordination cn, composite_subscription cs = … in replay()
153 …replay(std::size_t count, rxsc::scheduler::clock_type::duration period, Coordination cn, composite… in replay()
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/operators/
Drx-time_interval.hpp70 typedef rxsc::scheduler::clock_type::time_point time_point;
126 class Value = typename rxsc::scheduler::clock_type::time_point::duration>
138 class Value = typename rxsc::scheduler::clock_type::time_point::duration>

123