Home
last modified time | relevance | path

Searched refs:ns (Results 1 – 25 of 61) sorted by relevance

123

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.nonmember/
Dop_times_rep.pass.cpp30 std::chrono::nanoseconds ns(3); in main() local
31 ns = ns * 5; in main()
32 assert(ns.count() == 15); in main()
33 ns = 6 * ns; in main()
34 assert(ns.count() == 90); in main()
38 constexpr std::chrono::nanoseconds ns(3); in main() local
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() local
26 ns = ns / 5; in main()
27 assert(ns.count() == 3); in main()
31 constexpr std::chrono::nanoseconds ns(15); in main() local
32 constexpr std::chrono::nanoseconds ns2 = ns / 5; in main()
Dop_mod_rep.pass.cpp25 std::chrono::nanoseconds ns(15); in main() local
26 ns = ns % 6; in main()
27 assert(ns.count() == 3); in main()
31 constexpr std::chrono::nanoseconds ns(15); in main() local
32 constexpr std::chrono::nanoseconds ns2 = ns % 6; in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.literals/
Dliterals1.pass.cpp43 nanoseconds ns = 645ns; in main() local
44 assert ( ns == nanoseconds(645)); in main()
45 auto ns2 = 645.ns; in main()
46 assert ( ns == ns2 ); in main()
Dliterals2.pass.cpp46 std::chrono::nanoseconds ns = 645ns; in main() local
47 assert ( ns == std::chrono::nanoseconds(645)); in main()
48 auto ns2 = 645.ns; in main()
49 assert ( ns == ns2 ); in main()
Dliterals.pass.cpp27 static_assert ( std::is_same<decltype( 3ns ), std::chrono::nanoseconds>::value, "" ); in main()
54 std::chrono::nanoseconds ns = 645ns; in main() local
55 assert ( ns == std::chrono::nanoseconds(645)); in main()
56 auto ns2 = 645.ns; in main()
57 assert ( ns == ns2 ); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.arithmetic/
Dop_divide=.pass.cpp21 std::chrono::nanoseconds ns(15); in main() local
22 ns /= 5; in main()
23 assert(ns.count() == 3); in main()
Dop_divideEQ.pass.cpp21 std::chrono::nanoseconds ns(15); in main() local
22 ns /= 5; in main()
23 assert(ns.count() == 3); in main()
Dop_timesEQ.pass.cpp21 std::chrono::nanoseconds ns(3); in main() local
22 ns *= 5; in main()
23 assert(ns.count() == 15); in main()
Dop_times=.pass.cpp21 std::chrono::nanoseconds ns(3); in main() local
22 ns *= 5; in main()
23 assert(ns.count() == 15); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/
Dtry_lock_for.pass.cpp28 typedef std::chrono::nanoseconds ns; typedef
38 ns d = t1 - t0 - ms(250); in f1()
39 assert(d < ns(50000000)); // within 50ms in f1()
47 ns d = t1 - t0 - ms(250); in f2()
48 assert(d < ns(50000000)); // within 50ms in f2()
Dtry_lock_until.pass.cpp28 typedef std::chrono::nanoseconds ns; typedef
38 ns d = t1 - t0 - ms(250); in f1()
47 ns d = t1 - t0 - ms(250); in f2()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
Dmutex_time_point.pass.cpp28 typedef std::chrono::nanoseconds ns; typedef
36 ns d = t1 - t0 - ms(250); in f1()
37 assert(d < ns(50000000)); // within 50ms in f1()
46 ns d = t1 - t0 - ms(250); in f2()
Dmutex_duration.pass.cpp28 typedef std::chrono::nanoseconds ns; typedef
36 ns d = t1 - t0 - ms(250); in f1()
46 ns d = t1 - t0 - ms(250); in f2()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.guard/
Dmutex.fail.cpp27 typedef std::chrono::nanoseconds ns; typedef
37 ns d = t1 - t0 - ms(250); in f()
38 assert(d < ns(2500000)); // within 2.5ms in f()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/
Dmutex_time_point.pass.cpp31 typedef std::chrono::nanoseconds ns; typedef
39 ns d = t1 - t0 - ms(250); in f1()
40 assert(d < ns(50000000)); // within 50ms in f1()
49 ns d = t1 - t0 - ms(250); in f2()
Dmutex.pass.cpp30 typedef std::chrono::nanoseconds ns; typedef
40 ns d = t1 - t0 - ms(250); in f()
52 ns d = t1 - t0; in g()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/
Dtry_lock_for.pass.cpp28 typedef std::chrono::nanoseconds ns; typedef
36 ns d = t1 - t0 - ms(250); in f1()
45 ns d = t1 - t0 - ms(250); in f2()
Dtry_lock_until.pass.cpp28 typedef std::chrono::nanoseconds ns; typedef
36 ns d = t1 - t0 - ms(250); in f1()
45 ns d = t1 - t0 - ms(250); in f2()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/
Dtry_lock_for.pass.cpp30 typedef std::chrono::nanoseconds ns; typedef
38 ns d = t1 - t0 - ms(250); in f1()
47 ns d = t1 - t0 - ms(250); in f2()
Dtry_lock_until.pass.cpp30 typedef std::chrono::nanoseconds ns; typedef
38 ns d = t1 - t0 - ms(250); in f1()
47 ns d = t1 - t0 - ms(250); in f2()
Dlock_shared.pass.cpp30 typedef std::chrono::nanoseconds ns; typedef
38 ns d = t1 - t0 - ms(250); in f()
48 ns d = t1 - t0; in g()
Dtry_lock_shared_for.pass.cpp31 typedef std::chrono::nanoseconds ns; typedef
39 ns d = t1 - t0 - ms(250); in f1()
48 ns d = t1 - t0 - ms(250); in f2()
Dtry_lock_shared_until.pass.cpp31 typedef std::chrono::nanoseconds ns; typedef
39 ns d = t1 - t0 - ms(250); in f1()
48 ns d = t1 - t0 - ms(250); in f2()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.threads/thread.thread.this/
Dsleep_for.pass.cpp28 std::chrono::nanoseconds ns = (t1 - t0) - ms; in main() local
31 assert(std::abs(ns.count()) < err.count()); in main()

123