/external/libcxx/test/thread/thread.threads/thread.thread.this/ |
H A D | sleep_until.pass.cpp | 24 std::chrono::milliseconds ms(500); 26 std::this_thread::sleep_until(t0 + ms); 28 std::chrono::nanoseconds ns = (t1 - t0) - ms; 29 std::chrono::nanoseconds err = 5 * ms / 100; 30 // The time slept is within 5% of 500ms
|
/external/libcxx/test/utilities/time/time.duration/time.duration.cons/ |
H A D | convert_inexact.fail.cpp | 24 std::chrono::milliseconds ms = us; local
|
/external/chromium_org/tools/traceline/traceline/scripts/ |
H A D | alloc.py | 15 delta = e['done'] - e['ms'] 17 ms = e['ms'] 19 delta, ms, tid)
|
/external/clang/test/Index/Inputs/ |
H A D | t1.c | 24 struct MyStruct ms; local 25 ms.field_var = 10;
|
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/ |
H A D | mutex_time_point.pass.cpp | 27 typedef std::chrono::milliseconds ms; typedef 33 std::unique_lock<std::timed_mutex> lk(m, Clock::now() + ms(300)); 36 ns d = t1 - t0 - ms(250); 37 assert(d < ns(50000000)); // within 50ms 43 std::unique_lock<std::timed_mutex> lk(m, Clock::now() + ms(250)); 46 ns d = t1 - t0 - ms(250); 47 assert(d < ms(50)); // within 50ms 55 std::this_thread::sleep_for(ms(250)); 62 std::this_thread::sleep_for(ms(30 [all...] |
H A D | mutex.pass.cpp | 26 typedef std::chrono::milliseconds ms; typedef 37 ns d = t1 - t0 - ms(250); 38 assert(d < ms(50)); // within 50ms 45 std::this_thread::sleep_for(ms(250));
|
/external/chromium_org/third_party/skia/third_party/lua/src/ |
H A D | lstrlib.c | 213 static const char *match (MatchState *ms, const char *s, const char *p); 226 static int check_capture (MatchState *ms, int l) { argument 228 if (l < 0 || l >= ms->level || ms->capture[l].len == CAP_UNFINISHED) 229 return luaL_error(ms->L, "invalid capture index %%%d", l + 1); 234 static int capture_to_close (MatchState *ms) { argument 235 int level = ms->level; 237 if (ms->capture[level].len == CAP_UNFINISHED) return level; 238 return luaL_error(ms->L, "invalid pattern capture"); 242 static const char *classend (MatchState *ms, cons argument 309 singlematch(MatchState *ms, const char *s, const char *p, const char *ep) argument 325 matchbalance(MatchState *ms, const char *s, const char *p) argument 346 max_expand(MatchState *ms, const char *s, const char *p, const char *ep) argument 361 min_expand(MatchState *ms, const char *s, const char *p, const char *ep) argument 374 start_capture(MatchState *ms, const char *s, const char *p, int what) argument 388 end_capture(MatchState *ms, const char *s, const char *p) argument 399 match_capture(MatchState *ms, const char *s, int l) argument 410 match(MatchState *ms, const char *s, const char *p) argument 536 push_onecapture(MatchState *ms, int i, const char *s, const char *e) argument 555 push_captures(MatchState *ms, const char *s, const char *e) argument 598 MatchState ms; local 640 MatchState ms; local 678 add_s(MatchState *ms, luaL_Buffer *b, const char *s, const char *e) argument 704 add_value(MatchState *ms, luaL_Buffer *b, const char *s, const char *e, int tr) argument 743 MatchState ms; local [all...] |
/external/libcxx/test/utilities/time/time.duration/time.duration.literals/ |
H A D | literals1.pass.cpp | 33 milliseconds ms = 247ms; local 34 assert ( ms == milliseconds(247)); 35 auto ms2 = 247.0ms; 36 assert ( ms == ms2 );
|
/external/libcxx/test/thread/futures/futures.shared_future/ |
H A D | wait_for.pass.cpp | 21 typedef std::chrono::milliseconds ms; typedef 25 std::this_thread::sleep_for(ms(500)); 33 std::this_thread::sleep_for(ms(500)); 40 std::this_thread::sleep_for(ms(500)); 53 assert(f.wait_for(ms(300)) == std::future_status::timeout); 55 assert(f.wait_for(ms(300)) == std::future_status::ready); 61 assert(t1-t0 < ms(5)); 69 assert(f.wait_for(ms(300)) == std::future_status::timeout); 71 assert(f.wait_for(ms(300)) == std::future_status::ready); 77 assert(t1-t0 < ms( [all...] |
/external/libcxx/test/thread/futures/futures.unique_future/ |
H A D | wait_for.pass.cpp | 21 typedef std::chrono::milliseconds ms; typedef 25 std::this_thread::sleep_for(ms(500)); 33 std::this_thread::sleep_for(ms(500)); 40 std::this_thread::sleep_for(ms(500)); 53 assert(f.wait_for(ms(300)) == std::future_status::timeout); 55 assert(f.wait_for(ms(300)) == std::future_status::ready); 61 assert(t1-t0 < ms(50)); 69 assert(f.wait_for(ms(300)) == std::future_status::timeout); 71 assert(f.wait_for(ms(300)) == std::future_status::ready); 77 assert(t1-t0 < ms(5 [all...] |
/external/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/ |
H A D | try_lock_for.pass.cpp | 27 typedef std::chrono::milliseconds ms; typedef 33 assert(m.try_lock_for(ms(300)) == true); 38 ns d = t1 - t0 - ms(250); 39 assert(d < ns(50000000)); // within 50ms 45 assert(m.try_lock_for(ms(250)) == false); 47 ns d = t1 - t0 - ms(250); 48 assert(d < ns(50000000)); // within 50ms 56 std::this_thread::sleep_for(ms(250)); 63 std::this_thread::sleep_for(ms(300));
|
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/ |
H A D | mutex_duration.pass.cpp | 30 typedef std::chrono::milliseconds ms; typedef 36 std::shared_lock<std::shared_timed_mutex> lk(m, ms(300)); 39 ns d = t1 - t0 - ms(250); 40 assert(d < ms(50)); // within 50ms 46 std::shared_lock<std::shared_timed_mutex> lk(m, ms(250)); 49 ns d = t1 - t0 - ms(250); 50 assert(d < ms(50)); // within 50ms 63 std::this_thread::sleep_for(ms(25 [all...] |
/external/valgrind/main/drd/tests/ |
H A D | rwlock_race.c | 20 static void sleep_ms(const int ms) argument 22 struct timespec delay = { ms / 1000, (ms % 1000) * 1000 * 1000 };
|
/external/chromium_org/v8/test/mjsunit/ |
H A D | to_number_order.js | 65 var ms = { valueOf: function() { x += 7; return 999; } }; 68 new Date(year, month, date, hours, minutes, seconds, ms); 73 Date(year, month, date, hours, minutes, seconds, ms); 77 Date.UTC(year, month, date, hours, minutes, seconds, ms); 82 new Date().setSeconds(seconds, ms); 86 new Date().setSeconds(seconds, ms); 90 new Date().setUTCSeconds(seconds, ms); 94 new Date().setMinutes(minutes, seconds, ms); 98 new Date().setUTCMinutes(minutes, seconds, ms); 102 new Date().setHours(hours, minutes, seconds, ms); [all...] |
/external/chromium_org/base/profiler/ |
H A D | tracked_time.h | 37 static Duration FromMilliseconds(int ms); 59 static TrackedTime FromMilliseconds(int32 ms) { return TrackedTime(ms); } argument 63 explicit TrackedTime(int32 ms);
|
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.guard/ |
H A D | adopt_lock.pass.cpp | 26 typedef std::chrono::milliseconds ms; typedef 38 ns d = t1 - t0 - ms(250); 39 assert(d < ms(50)); // within 50ms 46 std::this_thread::sleep_for(ms(250));
|
H A D | mutex.pass.cpp | 26 typedef std::chrono::milliseconds ms; typedef 37 ns d = t1 - t0 - ms(250); 38 assert(d < ms(200)); // within 200ms 45 std::this_thread::sleep_for(ms(250));
|
/external/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.class/ |
H A D | lock.pass.cpp | 28 typedef std::chrono::milliseconds ms; typedef 37 ns d = t1 - t0 - ms(250); 38 assert(d < ms(50)); // within 50ms 45 std::this_thread::sleep_for(ms(250));
|
H A D | try_lock.pass.cpp | 26 typedef std::chrono::milliseconds ms; typedef 39 ns d = t1 - t0 - ms(250); 40 assert(d < ms(200)); // within 200ms 47 std::this_thread::sleep_for(ms(250));
|
/external/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.recursive/ |
H A D | lock.pass.cpp | 28 typedef std::chrono::milliseconds ms; typedef 39 ns d = t1 - t0 - ms(250); 40 assert(d < ms(200)); // within 200ms 47 std::this_thread::sleep_for(ms(250));
|
H A D | try_lock.pass.cpp | 26 typedef std::chrono::milliseconds ms; typedef 41 ns d = t1 - t0 - ms(250); 42 assert(d < ms(200)); // within 200ms 49 std::this_thread::sleep_for(ms(250));
|
/external/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/ |
H A D | lock.pass.cpp | 28 typedef std::chrono::milliseconds ms; typedef 37 ns d = t1 - t0 - ms(250); 38 assert(d < ms(50)); // within 50ms 48 std::this_thread::sleep_for(ms(250));
|
H A D | try_lock.pass.cpp | 28 typedef std::chrono::milliseconds ms; typedef 41 ns d = t1 - t0 - ms(250); 42 assert(d < ms(200)); // within 200ms 52 std::this_thread::sleep_for(ms(250));
|
/external/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/ |
H A D | lock.pass.cpp | 28 typedef std::chrono::milliseconds ms; typedef 37 ns d = t1 - t0 - ms(250); 38 assert(d < ms(50)); // within 50ms 45 std::this_thread::sleep_for(ms(250));
|
H A D | try_lock.pass.cpp | 26 typedef std::chrono::milliseconds ms; typedef 39 ns d = t1 - t0 - ms(250); 40 assert(d < ms(200)); // within 200ms 47 std::this_thread::sleep_for(ms(250));
|