/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/ |
try_lock_shared.pass.cpp | 31 typedef std::chrono::system_clock Clock; 32 typedef Clock::time_point time_point; 33 typedef Clock::duration duration; 46 time_point t0 = Clock::now(); 52 time_point t1 = Clock::now();
|
try_lock_shared_for.pass.cpp | 32 typedef std::chrono::steady_clock Clock; 33 typedef Clock::time_point time_point; 34 typedef Clock::duration duration; 51 time_point t0 = Clock::now(); 53 time_point t1 = Clock::now(); 61 time_point t0 = Clock::now(); 63 time_point t1 = Clock::now();
|
try_lock_shared_until.pass.cpp | 19 // template <class Clock, class Duration> 20 // bool try_lock_shared_until(const chrono::time_point<Clock, Duration>& abs_time); 32 typedef std::chrono::steady_clock Clock; 33 typedef Clock::time_point time_point; 34 typedef Clock::duration duration; 51 time_point t0 = Clock::now(); 52 assert(m.try_lock_shared_until(Clock::now() + WaitTime + Tolerance) == true); 53 time_point t1 = Clock::now(); 61 time_point t0 = Clock::now(); 62 assert(m.try_lock_shared_until(Clock::now() + WaitTime) == false) [all...] |
try_lock_until.pass.cpp | 19 // template <class Clock, class Duration> 20 // bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time); 31 typedef std::chrono::steady_clock Clock; 32 typedef Clock::time_point time_point; 33 typedef Clock::duration duration; 51 time_point t0 = Clock::now(); 52 assert(m.try_lock_until(Clock::now() + WaitTime + Tolerance) == true); 53 time_point t1 = Clock::now(); 61 time_point t0 = Clock::now(); 62 assert(m.try_lock_until(Clock::now() + WaitTime) == false) [all...] |
/external/google-benchmark/src/ |
timers.cc | 177 typedef std::chrono::system_clock Clock; 178 std::time_t now = Clock::to_time_t(Clock::now());
|
/external/libcxx/test/std/thread/futures/futures.shared_future/ |
wait_until.pass.cpp | 17 // template <class Clock, class Duration> 19 // wait_until(const chrono::time_point<Clock, Duration>& abs_time) const; 66 typedef std::chrono::high_resolution_clock Clock; 73 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout); 80 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::ready); 82 Clock::time_point t0 = Clock::now(); 84 Clock::time_point t1 = Clock::now(); 94 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout) [all...] |
/external/libcxx/test/std/thread/futures/futures.unique_future/ |
wait_until.pass.cpp | 17 // template <class Clock, class Duration> 19 // wait_until(const chrono::time_point<Clock, Duration>& abs_time) const; 66 typedef std::chrono::high_resolution_clock Clock; 73 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout); 80 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::ready); 82 Clock::time_point t0 = Clock::now(); 84 Clock::time_point t1 = Clock::now(); 94 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout) [all...] |
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvar/ |
wait_until.pass.cpp | 16 // template <class Clock, class Duration> 19 // const chrono::time_point<Clock, Duration>& abs_time); 27 struct Clock 32 typedef std::chrono::time_point<Clock> time_point; 58 Clock::time_point t0 = Clock::now(); 59 Clock::time_point t = t0 + Clock::duration(250); 62 Clock::time_point t1 = Clock::now() [all...] |
wait_until_pred.pass.cpp | 16 // template <class Clock, class Duration, class Predicate> 19 // const chrono::time_point<Clock, Duration>& abs_time, 28 struct Clock 33 typedef std::chrono::time_point<Clock> time_point; 68 Clock::time_point t0 = Clock::now(); 69 Clock::time_point t = t0 + Clock::duration(250); 71 Clock::time_point t1 = Clock::now() [all...] |
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvarany/ |
wait_for_pred.pass.cpp | 51 typedef std::chrono::system_clock Clock; 57 Clock::time_point t0 = Clock::now(); 60 Clock::time_point t1 = Clock::now();
|
wait_until.pass.cpp | 16 // template <class Lock, class Clock, class Duration> 18 // wait_until(Lock& lock, const chrono::time_point<Clock, Duration>& abs_time); 26 struct Clock 31 typedef std::chrono::time_point<Clock> time_point; 61 Clock::time_point t0 = Clock::now(); 62 Clock::time_point t = t0 + Clock::duration(250); 65 Clock::time_point t1 = Clock::now() [all...] |
wait_until_pred.pass.cpp | 19 // const chrono::time_point<Clock, Duration>& abs_time, 28 struct Clock 33 typedef std::chrono::time_point<Clock> time_point; 72 Clock::time_point t0 = Clock::now(); 73 Clock::time_point t = t0 + Clock::duration(250); 75 Clock::time_point t1 = Clock::now(); 78 assert(t1 - t0 < Clock::duration(250)) [all...] |
/external/libcxx/utils/google-benchmark/src/ |
timers.cc | 177 typedef std::chrono::system_clock Clock; 178 std::time_t now = Clock::to_time_t(Clock::now());
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/thread/futures/futures.shared_future/ |
wait_until.pass.cpp | 17 // template <class Clock, class Duration> 19 // wait_until(const chrono::time_point<Clock, Duration>& abs_time) const; 66 typedef std::chrono::high_resolution_clock Clock; 73 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout); 80 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::ready); 82 Clock::time_point t0 = Clock::now(); 84 Clock::time_point t1 = Clock::now(); 94 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout) [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/thread/futures/futures.unique_future/ |
wait_until.pass.cpp | 17 // template <class Clock, class Duration> 19 // wait_until(const chrono::time_point<Clock, Duration>& abs_time) const; 66 typedef std::chrono::high_resolution_clock Clock; 73 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout); 80 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::ready); 82 Clock::time_point t0 = Clock::now(); 84 Clock::time_point t1 = Clock::now(); 94 assert(f.wait_until(Clock::now() + ms(10)) == std::future_status::timeout) [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/thread/thread.condition/thread.condition.condvar/ |
wait_until.pass.cpp | 16 // template <class Clock, class Duration> 19 // const chrono::time_point<Clock, Duration>& abs_time); 27 struct Clock 32 typedef std::chrono::time_point<Clock> time_point; 58 Clock::time_point t0 = Clock::now(); 59 Clock::time_point t = t0 + Clock::duration(250); 62 Clock::time_point t1 = Clock::now() [all...] |
wait_until_pred.pass.cpp | 16 // template <class Clock, class Duration, class Predicate> 19 // const chrono::time_point<Clock, Duration>& abs_time, 28 struct Clock 33 typedef std::chrono::time_point<Clock> time_point; 68 Clock::time_point t0 = Clock::now(); 69 Clock::time_point t = t0 + Clock::duration(250); 71 Clock::time_point t1 = Clock::now() [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/thread/thread.condition/thread.condition.condvarany/ |
wait_for_pred.pass.cpp | 51 typedef std::chrono::system_clock Clock; 57 Clock::time_point t0 = Clock::now(); 60 Clock::time_point t1 = Clock::now();
|
wait_until.pass.cpp | 16 // template <class Lock, class Clock, class Duration> 18 // wait_until(Lock& lock, const chrono::time_point<Clock, Duration>& abs_time); 26 struct Clock 31 typedef std::chrono::time_point<Clock> time_point; 61 Clock::time_point t0 = Clock::now(); 62 Clock::time_point t = t0 + Clock::duration(250); 65 Clock::time_point t1 = Clock::now() [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/utils/google-benchmark/src/ |
timers.cc | 173 typedef std::chrono::system_clock Clock; 174 std::time_t now = Clock::to_time_t(Clock::now());
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
TCKClock_Offset.java | 65 import java.time.Clock; 75 * Test offset clock. 87 Clock test = Clock.offset(Clock.fixed(INSTANT, PARIS), OFFSET); 95 Clock underlying = Clock.system(PARIS); 96 Clock test = Clock.offset(underlying, Duration.ZERO); 102 Clock.offset(null, Duration.ZERO) [all...] |
TCKClock_Tick.java | 65 import java.time.Clock; 76 * Test tick clock. 88 Clock test = Clock.tick(Clock.fixed(ZDT.withNano(i * 1000_000).toInstant(), PARIS), Duration.ofMillis(250)); 96 Clock test = Clock.tick(Clock.fixed(ZDT.withNano(i * 1000).toInstant(), PARIS), Duration.ofNanos(250_000)); 104 Clock test = Clock.tick(Clock.fixed(ZDT.withNano(i).toInstant(), PARIS), Duration.ofNanos(20)) [all...] |
/external/junit/src/main/java/org/junit/rules/ |
Stopwatch.java | 80 private final Clock clock; field in class:Stopwatch 85 this(new Clock()); 88 Stopwatch(Clock clock) { 89 this.clock = clock; 132 currentEndNanos = clock.nanoTime(); 139 startNanos = clock.nanoTime(); 144 endNanos = clock.nanoTime() [all...] |
/external/libcxx/test/std/thread/futures/futures.async/ |
async.pass.cpp | 31 typedef std::chrono::high_resolution_clock Clock; 93 Clock::time_point t0 = Clock::now(); 95 Clock::time_point t1 = Clock::now();
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/thread/futures/futures.async/ |
async.pass.cpp | 31 typedef std::chrono::high_resolution_clock Clock; 93 Clock::time_point t0 = Clock::now(); 95 Clock::time_point t1 = Clock::now();
|