Home
last modified time | relevance | path

Searched refs:nanoseconds (Results 1 – 25 of 73) sorted by relevance

123

/external/libcxx/test/std/utilities/time/time.duration/time.duration.nonmember/
Dop_mod_duration.pass.cpp25 std::chrono::nanoseconds ns1(15); in main()
26 std::chrono::nanoseconds ns2(6); in main()
27 std::chrono::nanoseconds r = ns1 % ns2; in main()
32 std::chrono::nanoseconds ns2(28); in main()
33 std::chrono::nanoseconds r = us1 % ns2; in main()
44 constexpr std::chrono::nanoseconds ns1(15); in main()
45 constexpr std::chrono::nanoseconds ns2(6); in main()
46 constexpr std::chrono::nanoseconds r = ns1 % ns2; in main()
51 constexpr std::chrono::nanoseconds ns2(28); in main()
52 constexpr std::chrono::nanoseconds r = us1 % ns2; in main()
Dop_divide_duration.pass.cpp25 std::chrono::nanoseconds ns1(15); in main()
26 std::chrono::nanoseconds ns2(5); in main()
31 std::chrono::nanoseconds ns2(5); in main()
46 constexpr std::chrono::nanoseconds ns1(15); in main()
47 constexpr std::chrono::nanoseconds ns2(5); in main()
52 constexpr std::chrono::nanoseconds ns2(5); in main()
Dop_times_rep.pass.cpp30 std::chrono::nanoseconds ns(3); in main()
38 constexpr std::chrono::nanoseconds ns(3); in main()
39 constexpr std::chrono::nanoseconds ns2 = ns * 5; in main()
41 constexpr std::chrono::nanoseconds ns3 = 6 * ns; in main()
Dop_divide_rep.pass.cpp25 std::chrono::nanoseconds ns(15); in main()
31 constexpr std::chrono::nanoseconds ns(15); in main()
32 constexpr std::chrono::nanoseconds ns2 = ns / 5; in main()
Dop_mod_rep.pass.cpp25 std::chrono::nanoseconds ns(15); in main()
31 constexpr std::chrono::nanoseconds ns(15); in main()
32 constexpr std::chrono::nanoseconds ns2 = ns % 6; in main()
/external/libcxx/src/
Dcondition_variable.cpp51 chrono::time_point<chrono::system_clock, chrono::nanoseconds> tp) _NOEXCEPT in __do_timed_wait()
57 nanoseconds d = tp.time_since_epoch(); in __do_timed_wait()
58 if (d > nanoseconds(0x59682F000000E941)) in __do_timed_wait()
59 d = nanoseconds(0x59682F000000E941); in __do_timed_wait()
Dthread.cpp108 sleep_for(const chrono::nanoseconds& ns) in sleep_for()
111 if (ns > nanoseconds::zero()) in sleep_for()
/external/libcxx/test/std/utilities/time/time.duration/time.duration.literals/
Dliterals.pass.cpp27 static_assert ( std::is_same<decltype( 3ns ), std::chrono::nanoseconds>::value, "" ); in main()
54 std::chrono::nanoseconds ns = 645ns; in main()
55 assert ( ns == std::chrono::nanoseconds(645)); in main()
Dliterals1.pass.cpp43 nanoseconds ns = 645ns; in main()
44 assert ( ns == nanoseconds(645)); in main()
Dliterals2.pass.cpp46 std::chrono::nanoseconds ns = 645ns; in main()
47 assert ( ns == std::chrono::nanoseconds(645)); in main()
/external/libcxx/test/std/thread/thread.threads/thread.thread.this/
Dsleep_until.pass.cpp30 std::chrono::nanoseconds ns = (t1 - t0) - ms; in main()
31 std::chrono::nanoseconds err = 5 * ms / 100; in main()
Dsleep_for.pass.cpp50 std::chrono::nanoseconds ns = (t1 - t0) - ms; in main()
51 std::chrono::nanoseconds err = 5 * ms / 100; in main()
/external/guava/guava-testlib/src/com/google/common/testing/
DFakeTicker.java52 public FakeTicker advance(long nanoseconds) { in advance() argument
53 nanos.addAndGet(nanoseconds); in advance()
/external/libcxx/test/std/utilities/time/time.point/time.point.cast/
Dtime_point_cast.pass.cpp63 test(std::chrono::milliseconds(7265000), std::chrono::nanoseconds(7265000000000LL)); in main()
75 test_constexpr<std::chrono::milliseconds, 7265000, std::chrono::nanoseconds,7265000000000LL> (); in main()
/external/libcxx/test/std/utilities/time/time.duration/time.duration.arithmetic/
Dop_times=.pass.cpp21 std::chrono::nanoseconds ns(3); in main()
Dop_divide=.pass.cpp21 std::chrono::nanoseconds ns(15); in main()
/external/libcxx/include/
Dthread412 _LIBCPP_FUNC_VIS void sleep_for(const chrono::nanoseconds& ns);
421 _LIBCPP_CONSTEXPR duration<long double> _Max = nanoseconds::max();
422 nanoseconds __ns;
425 __ns = duration_cast<nanoseconds>(__d);
430 __ns = nanoseconds::max();
/external/libcxx/test/std/utilities/time/
Dclock.h17 typedef std::chrono::nanoseconds duration;
Dnanoseconds.pass.cpp20 typedef std::chrono::nanoseconds D; in main()
/external/libcxx/test/std/atomics/atomics.types.generic/
Dtrivially_copyable.pass.cpp76 test(std::chrono::nanoseconds(2)); in main()
/external/llvm/unittests/Support/
DTimeValueTest.cpp34 EXPECT_EQ(ns, static_cast<uint32_t>(epoch.nanoseconds())); in TEST()
/external/llvm/include/llvm/Support/
DTimeValue.h212 NanoSecondsType nanoseconds() const { return nanos_; } in nanoseconds() function
296 void nanoseconds ( NanoSecondsType nanos ) { in nanoseconds() function
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.class/
Dlock.pass.cpp31 typedef std::chrono::nanoseconds ns;
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/
Dlock.pass.cpp31 typedef std::chrono::nanoseconds ns;
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/
Dlock.pass.cpp31 typedef std::chrono::nanoseconds ns;

123