Home
last modified time | relevance | path

Searched refs:microseconds (Results 1 – 25 of 438) sorted by relevance

12345678910>>...18

/external/openscreen/cast/streaming/
Drtp_time_unittest.cc24 RtpTimeDelta::FromDuration(microseconds(0), kTimebase)); in TEST()
25 ASSERT_EQ(microseconds::zero(), in TEST()
26 RtpTimeDelta::FromTicks(0).ToDuration<microseconds>(kTimebase)); in TEST()
34 RtpTimeDelta::FromTicks(480).ToDuration<microseconds>(kTimebase)); in TEST()
36 RtpTimeDelta::FromTicks(96000).ToDuration<microseconds>(kTimebase)); in TEST()
42 RtpTimeDelta::FromDuration(microseconds(0 + error_us), kTimebase)); in TEST()
45 RtpTimeDelta::FromDuration(microseconds(21 + error_us), kTimebase)); in TEST()
48 RtpTimeDelta::FromDuration(microseconds(42 + error_us), kTimebase)); in TEST()
51 RtpTimeDelta::FromDuration(microseconds(63 + error_us), kTimebase)); in TEST()
54 RtpTimeDelta::FromDuration(microseconds(83 + error_us), kTimebase)); in TEST()
[all …]
/external/python/cpython3/Python/
Dthread_pthread.h111 #define MICROSECONDS_TO_TIMESPEC(microseconds, ts) \ argument
115 tv.tv_usec += microseconds % 1000000; \
116 tv.tv_sec += microseconds / 1000000; \
427 PyThread_acquire_lock_timed(PyThread_type_lock lock, PY_TIMEOUT_T microseconds, in PyThread_acquire_lock_timed() argument
438 lock, microseconds, intr_flag)); in PyThread_acquire_lock_timed()
440 if (microseconds > PY_TIMEOUT_MAX) { in PyThread_acquire_lock_timed()
444 if (microseconds > 0) { in PyThread_acquire_lock_timed()
445 MICROSECONDS_TO_TIMESPEC(microseconds, ts); in PyThread_acquire_lock_timed()
450 _PyTime_t timeout = _PyTime_FromNanoseconds(microseconds * 1000); in PyThread_acquire_lock_timed()
456 if (microseconds > 0) { in PyThread_acquire_lock_timed()
[all …]
/external/python/dateutil/dateutil/
Drelativedelta.py107 hours=0, minutes=0, seconds=0, microseconds=0, argument
134 self.microseconds = 0
169 self.microseconds = delta.microseconds
184 self.microseconds = microseconds
232 if abs(self.microseconds) > 999999:
233 s = _sign(self.microseconds)
234 div, mod = divmod(self.microseconds * s, 1000000)
235 self.microseconds = mod * s
257 if (self.hours or self.minutes or self.seconds or self.microseconds
305 microseconds = round(self.microseconds + 1e6 * (seconds_f - seconds))
[all …]
/external/libxkbcommon/bench/
Dbench.c70 .microseconds = val.tv_usec, in bench_start()
81 .microseconds = val.tv_usec, in bench_stop()
89 result->microseconds = bench->stop.microseconds - bench->start.microseconds; in bench_elapsed()
90 if (result->microseconds < 0) { in bench_elapsed()
91 result->microseconds += 1000000; in bench_elapsed()
104 ret = asprintf(&buf, "%ld.%06ld", elapsed.seconds, elapsed.microseconds); in bench_elapsed_str()
/external/rust/crates/nix/src/sys/
Dtime.rs30 fn microseconds(microseconds: i64) -> Self; in microseconds() method
143 fn microseconds(microseconds: i64) -> TimeSpec { in microseconds() method
144 let nanoseconds = microseconds.checked_mul(1_000) in microseconds()
336 let microseconds = milliseconds.checked_mul(1_000) in milliseconds() localVariable
339 TimeVal::microseconds(microseconds) in milliseconds()
344 fn microseconds(microseconds: i64) -> TimeVal { in microseconds() method
345 let (secs, micros) = div_mod_floor_64(microseconds, MICROS_PER_SEC); in microseconds()
357 let microseconds = nanoseconds / 1000; in nanoseconds() localVariable
358 let (secs, micros) = div_mod_floor_64(microseconds, MICROS_PER_SEC); in nanoseconds()
412 TimeVal::microseconds(-self.num_microseconds()) in neg()
[all …]
/external/python/pybind11/tests/
Dtest_chrono.py44 assert diff.microseconds == 0
64 assert diff.microseconds == 0
145 assert cpp_diff.microseconds == diff.microseconds
158 assert cpp_diff.microseconds == diff.microseconds
171 assert cpp_diff.microseconds == diff.microseconds
180 time1 = datetime.timedelta(days=10, seconds=10, microseconds=100)
188 assert time1.microseconds == time2.microseconds
198 assert 525122 <= time.microseconds <= 525123
202 assert 665556 <= diff.microseconds <= 665557
/external/python/dateutil/dateutil/test/
Dtest_relativedelta.py22 hours=1, minutes=1, seconds=1, microseconds=1)
25 hours=1, minutes=1, seconds=1, microseconds=1)
145 microseconds=+282310))
152 microseconds=+282310))
188 minutes=5, microseconds=6),
190 minutes=5, microseconds=6))
236 relativedelta(microseconds=float(500000.25)),
242 minutes=5, microseconds=6),
244 minutes=-5, microseconds=-6))
283 minutes=-5, seconds=-2, microseconds=-12)
[all …]
/external/libcxx/test/std/utilities/time/time.duration/time.duration.arithmetic/
Dop_mod=duration.pass.cpp24 std::chrono::microseconds us1(11); in test_constexpr()
25 std::chrono::microseconds us2(3); in test_constexpr()
34 std::chrono::microseconds us1(11); in main()
35 std::chrono::microseconds us2(3); in main()
/external/llvm-project/lldb/test/API/functionalities/thread/create_after_attach/
Dmain.cpp5 using std::chrono::microseconds;
15 std::this_thread::sleep_for(microseconds(1)); in thread_1_func()
29 std::this_thread::sleep_for(microseconds(1)); // Set second breakpoint here in thread_2_func()
50 std::this_thread::sleep_for(microseconds(1)); // Set first breakpoint here in main()
/external/parameter-framework/asio-1.10.6/include/asio/detail/impl/
Dhandler_tracking.ipp37 uint64_t microseconds;
46 microseconds = static_cast<uint64_t>(now.total_microseconds() % 1000000);
91 timestamp.seconds, timestamp.microseconds,
111 timestamp.seconds, timestamp.microseconds,
124 timestamp.seconds, timestamp.microseconds, id_);
136 timestamp.seconds, timestamp.microseconds,
149 timestamp.seconds, timestamp.microseconds,
163 timestamp.seconds, timestamp.microseconds,
176 timestamp.seconds, timestamp.microseconds,
190 timestamp.seconds, timestamp.microseconds, id_);
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.duration/time.duration.arithmetic/
Dop_mod=duration.pass.cpp24 std::chrono::microseconds us1(11); in test_constexpr()
25 std::chrono::microseconds us2(3); in test_constexpr()
34 std::chrono::microseconds us1(11); in main()
35 std::chrono::microseconds us2(3); in main()
/external/google-benchmark/src/
Dsleep.cc39 void SleepForMicroseconds(int microseconds) {
44 div_t sleepTime = div(microseconds, kNumMicrosPerSecond);
52 sleep_time.tv_sec = microseconds / kNumMicrosPerSecond;
53 sleep_time.tv_nsec = (microseconds % kNumMicrosPerSecond) * kNumNanosPerMicro;
/external/python/cpython3/Modules/
D_queuemodule.c182 PY_TIMEOUT_T microseconds; in _queue_SimpleQueue_get_impl() local
186 microseconds = 0; in _queue_SimpleQueue_get_impl()
198 microseconds = _PyTime_AsMicroseconds(timeout_val, in _queue_SimpleQueue_get_impl()
200 if (microseconds >= PY_TIMEOUT_MAX) { in _queue_SimpleQueue_get_impl()
209 microseconds = -1; in _queue_SimpleQueue_get_impl()
219 if (r == PY_LOCK_FAILURE && microseconds != 0) { in _queue_SimpleQueue_get_impl()
221 r = PyThread_acquire_lock_timed(self->lock, microseconds, 1); in _queue_SimpleQueue_get_impl()
236 microseconds = _PyTime_AsMicroseconds(timeout_val, _PyTime_ROUND_CEILING); in _queue_SimpleQueue_get_impl()
/external/tensorflow/tensorflow/core/grappler/costs/
Dcost_estimator.h89 struct MicroSeconds : std::chrono::microseconds {
90 MicroSeconds() : std::chrono::microseconds(0) {} in MicroSeconds()
91 MicroSeconds(double d) : std::chrono::microseconds(static_cast<int64>(d)) {} in MicroSeconds()
92 MicroSeconds(const std::chrono::microseconds& d) in MicroSeconds()
93 : std::chrono::microseconds(d) {} in MicroSeconds()
94 MicroSeconds& operator=(const std::chrono::microseconds& d) {
95 std::chrono::microseconds::operator=(d);
112 return std::chrono::duration_cast<std::chrono::microseconds>(*this); in asMicroSeconds()
/external/openscreen/util/
Dchrono_helpers.h16 using microseconds = std::chrono::microseconds; variable
29 static constexpr microseconds to_microseconds(D d) { in to_microseconds()
30 return std::chrono::duration_cast<microseconds>(d); in to_microseconds()
/external/deqp-deps/amber/src/
Dsleep.cc29 void USleep(uint32_t microseconds) { in USleep() argument
32 Sleep(static_cast<DWORD>((microseconds + 999) / 1000)); in USleep()
34 usleep(microseconds); in USleep()
/external/libchrome/base/time/
Dtime_conversion_posix.cc24 int64_t microseconds = InMicroseconds(); in ToTimeSpec() local
26 if (microseconds >= Time::kMicrosecondsPerSecond) { in ToTimeSpec()
28 microseconds -= seconds * Time::kMicrosecondsPerSecond; in ToTimeSpec()
32 static_cast<long>(microseconds * Time::kNanosecondsPerMicrosecond)}; in ToTimeSpec()
/external/llvm-project/lldb/test/API/commands/expression/timeout/
Dwait-a-while.cpp9 wait_a_while (int microseconds) in wait_a_while() argument
12 auto end_time = std::chrono::system_clock::now() + std::chrono::microseconds(microseconds); in wait_a_while()
/external/libcxx/utils/google-benchmark/src/
Dsleep.cc35 void SleepForMicroseconds(int microseconds) {
37 sleep_time.tv_sec = microseconds / kNumMicrosPerSecond;
38 sleep_time.tv_nsec = (microseconds % kNumMicrosPerSecond) * kNumNanosPerMicro;
/external/llvm-project/libcxx/utils/google-benchmark/src/
Dsleep.cc35 void SleepForMicroseconds(int microseconds) {
37 sleep_time.tv_sec = microseconds / kNumMicrosPerSecond;
38 sleep_time.tv_nsec = (microseconds % kNumMicrosPerSecond) * kNumNanosPerMicro;
/external/llvm-project/llvm/utils/benchmark/src/
Dsleep.cc35 void SleepForMicroseconds(int microseconds) {
37 sleep_time.tv_sec = microseconds / kNumMicrosPerSecond;
38 sleep_time.tv_nsec = (microseconds % kNumMicrosPerSecond) * kNumNanosPerMicro;
/external/openscreen/platform/api/
Dtime_unittest.cc39 Clock::duration delta = microseconds(0); in TEST()
45 ASSERT_LE(microseconds(0), delta); in TEST()
46 } while (delta == microseconds(0)); in TEST()
/external/libcxx/test/std/utilities/time/time.duration/time.duration.nonmember/
Dop_-.pass.cpp34 std::chrono::microseconds s2(5); in main()
35 std::chrono::microseconds r = s1 - s2; in main()
59 constexpr std::chrono::microseconds s2(5); in main()
60 constexpr std::chrono::microseconds r = s1 - s2; in main()
Dop_+.pass.cpp33 std::chrono::microseconds s2(5); in main()
34 std::chrono::microseconds r = s1 + s2; in main()
58 constexpr std::chrono::microseconds s2(5); in main()
59 constexpr std::chrono::microseconds r = s1 + s2; in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.duration/time.duration.nonmember/
Dop_-.pass.cpp33 std::chrono::microseconds s2(5); in main()
34 std::chrono::microseconds r = s1 - s2; in main()
58 constexpr std::chrono::microseconds s2(5); in main()
59 constexpr std::chrono::microseconds r = s1 - s2; in main()

12345678910>>...18