/third_party/ltp/lib/newlib_tests/ |
D | test_timer.c | 18 struct tst_ts ts1, ts2; in test_diff() local 22 ts2 = tst_ts_from_us(type, VAL_US); in test_diff() 24 diff = tst_ts_diff_ns(ts1, ts2); in test_diff() 31 diff = tst_ts_diff_ns(ts1, ts2); in test_diff() 38 diff = tst_ts_diff_ms(ts1, ts2); in test_diff() 48 struct tst_ts ts1, ts2; in test_lt() local 51 ts2 = tst_ts_from_us(type, VAL_US + 1); in test_lt() 53 if (tst_ts_lt(ts1, ts2)) in test_lt() 60 if (tst_ts_lt(ts1, ts2)) in test_lt() 67 if (tst_ts_lt(ts1, ts2)) in test_lt()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
D | TestUtilities.java | 31 TreeSet ts2 = new TreeSet(); in TestCollectionUtilitySpeed() local 38 ts2.add(prefix + String.valueOf(i) + postfix); in TestCollectionUtilitySpeed() 41 CollectionUtilities.containsAll(ts1, ts2); in TestCollectionUtilitySpeed() 42 ts1.containsAll(ts2); in TestCollectionUtilitySpeed() 44 timeAndCompare(ts1, ts2, iterations, true, .75); in TestCollectionUtilitySpeed() 47 timeAndCompare(ts1, ts2, iterations, true, .75); in TestCollectionUtilitySpeed() 48 timeAndCompare(ts2, ts1, iterations*100, false, 1.05); in TestCollectionUtilitySpeed() 51 …private void timeAndCompare(TreeSet ts1, TreeSet ts2, int iterations, boolean expected, double fac… in timeAndCompare() argument 52 …double utilityTimeSorted = timeUtilityContainsAll(iterations, ts1, ts2, expected)/(double)iteratio… in timeAndCompare() 53 …double standardTimeSorted = timeStandardContainsAll(iterations, ts1, ts2, expected)/(double)iterat… in timeAndCompare()
|
/third_party/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/util/ |
D | TestUtilities.java | 28 TreeSet ts2 = new TreeSet(); in TestCollectionUtilitySpeed() local 35 ts2.add(prefix + String.valueOf(i) + postfix); in TestCollectionUtilitySpeed() 38 CollectionUtilities.containsAll(ts1, ts2); in TestCollectionUtilitySpeed() 39 ts1.containsAll(ts2); in TestCollectionUtilitySpeed() 41 timeAndCompare(ts1, ts2, iterations, true, .75); in TestCollectionUtilitySpeed() 44 timeAndCompare(ts1, ts2, iterations, true, .75); in TestCollectionUtilitySpeed() 45 timeAndCompare(ts2, ts1, iterations*100, false, 1.05); in TestCollectionUtilitySpeed() 48 …private void timeAndCompare(TreeSet ts1, TreeSet ts2, int iterations, boolean expected, double fac… in timeAndCompare() argument 49 …double utilityTimeSorted = timeUtilityContainsAll(iterations, ts1, ts2, expected)/(double)iteratio… in timeAndCompare() 50 …double standardTimeSorted = timeStandardContainsAll(iterations, ts1, ts2, expected)/(double)iterat… in timeAndCompare()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/ |
D | 3-1.c | 23 struct timespec ts1, ts2, ts3, ts4; in main() local 36 if (clock_gettime(CLOCK_MONOTONIC, &ts2) != 0) { in main() 54 if ((ts1.tv_sec <= ts2.tv_sec) && in main() 55 (ts2.tv_sec <= ts3.tv_sec) && (ts3.tv_sec <= ts4.tv_sec)) { in main() 61 ts1.tv_sec, ts2.tv_sec, ts3.tv_sec, ts4.tv_sec); in main()
|
D | 4-1.c | 37 struct timespec ts1, ts2, ts3, ts4; in main() 51 if (clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts2) != 0) { in main() 70 if ((ts1.tv_sec <= ts2.tv_sec) && in main() 71 (ts2.tv_sec <= ts3.tv_sec) && (ts3.tv_sec <= ts4.tv_sec)) { in main() 77 ts1.tv_sec, ts2.tv_sec, ts3.tv_sec, ts4.tv_sec); in main()
|
/third_party/python/Lib/test/ |
D | test_graphlib.py | 111 ts2 = graphlib.TopologicalSorter({1: {2, 3, 4, 5}}) 112 self.assertEqual([*ts.static_order()], [*ts2.static_order()]) 217 ts2 = graphlib.TopologicalSorter() 218 ts2.add(1, 0) 219 ts2.add(3, 2, 1) 220 ts2.add(4, 7) 221 ts2.add(6, 7) 222 ts2.add(4, 5) 224 self.assertEqual(list(get_groups(ts)), list(get_groups(ts2)))
|
/third_party/ltp/include/ |
D | tst_timer.h | 784 static inline int tst_timespec_lt(struct timespec ts1, struct timespec ts2) in tst_timespec_lt() argument 786 return tst_ts_lt(tst_ts_from_timespec(ts1), tst_ts_from_timespec(ts2)); in tst_timespec_lt() 882 tst_timespec_add(struct timespec ts1, struct timespec ts2) in tst_timespec_add() argument 886 res = tst_ts_add(tst_ts_from_timespec(ts1), tst_ts_from_timespec(ts2)); in tst_timespec_add() 909 tst_timespec_diff(struct timespec ts1, struct timespec ts2) in tst_timespec_diff() argument 913 res = tst_ts_diff(tst_ts_from_timespec(ts1), tst_ts_from_timespec(ts2)); in tst_timespec_diff() 931 tst_timespec_diff_ns(struct timespec ts1, struct timespec ts2) in tst_timespec_diff_ns() argument 933 return tst_ts_diff_ns(tst_ts_from_timespec(ts1), tst_ts_from_timespec(ts2)); in tst_timespec_diff_ns() 949 tst_timespec_diff_us(struct timespec ts1, struct timespec ts2) in tst_timespec_diff_us() argument 951 return tst_ts_diff_us(tst_ts_from_timespec(ts1), tst_ts_from_timespec(ts2)); in tst_timespec_diff_us() [all …]
|
/third_party/libffi/testsuite/libffi.call/ |
D | struct5.c | 15 static test_structure_5 ABI_ATTR struct5(test_structure_5 ts1, test_structure_5 ts2) in struct5() argument 17 ts1.c1 += ts2.c1; in struct5() 18 ts1.c2 -= ts2.c2; in struct5()
|
/third_party/typescript/src/testRunner/unittests/tsserver/ |
D | textStorage.ts | 22 … const ts2 = new server.TextStorage(host, getDummyScriptInfo(server.asNormalizedPath(f.path))); constant 25 ts2.useText(); 35 const pos2 = ts2.lineOffsetToPosition(line + 1, offset + 1); 40 const {start: start2, length: length2 } = ts2.lineToTextSpan(line); 47 const { line: line2, offset: offset2 } = ts2.positionToLineOffset(pos);
|
/third_party/musl/libc-test/src/functionalext/common/ |
D | pthread_util.h | 75 static inline int GetTimeDiff(struct timespec ts1, struct timespec ts2) in GetTimeDiff() argument 78 int ms = (ts1.tv_sec - ts2.tv_sec) * nsecPerSec + (ts1.tv_nsec - ts2.tv_nsec); in GetTimeDiff()
|
/third_party/ffmpeg/libavformat/ |
D | sbgdec.c | 144 int64_t ts1, ts2; member 1027 int64_t ts2, int32_t f2, int32_t a2) in add_interval() argument 1037 ri->ts2 == ts1) { in add_interval() 1038 ri->ts2 = ts2; in add_interval() 1047 i->ts2 = ts2; in add_interval() 1059 int64_t ts1, int64_t ts2, int32_t f, int32_t a) in add_bell() argument 1075 ts4 = FFMIN(ts2, ts1 + cpoints[i][0] * dt); in add_bell() 1088 int64_t ts1, int64_t ts2, in generate_interval() argument 1095 if (ts2 <= ts1 || (s1->vol == 0 && s2->vol == 0)) in generate_interval() 1104 ts2, s2->carrier, s2->vol); in generate_interval() [all …]
|
D | mux.c | 913 int64_t ts, ts2; local 917 ts2= av_rescale_q(next->dts, st2->time_base, AV_TIME_BASE_Q) - preload2; 918 if (ts == ts2) { 921 ts2 = 0; 923 comp = (ts2 > ts) - (ts2 < ts);
|
D | avidec.c | 1815 int64_t ts2 = av_rescale_q(timestamp, st->time_base, st2->time_base); in seek_subtitle() local 1817 if (avformat_seek_file(ast2->sub_ctx, 0, INT64_MIN, ts2, ts2, 0) >= 0 || in seek_subtitle() 1818 avformat_seek_file(ast2->sub_ctx, 0, ts2, ts2, INT64_MAX, 0) >= 0) in seek_subtitle()
|
/third_party/openssl/crypto/ |
D | o_time.c | 31 struct tm data, *ts2 = &data; in OPENSSL_gmtime() local 35 if (gmtime_r(timer, ts2) == NULL) in OPENSSL_gmtime() 37 memcpy(result, ts2, sizeof(struct tm)); in OPENSSL_gmtime()
|
/third_party/node/deps/openssl/openssl/crypto/ |
D | o_time.c | 31 struct tm data, *ts2 = &data; in OPENSSL_gmtime() local 35 if (gmtime_r(timer, ts2) == NULL) in OPENSSL_gmtime() 37 memcpy(result, ts2, sizeof(struct tm)); in OPENSSL_gmtime()
|
/third_party/musl/libc-test/src/functionalext/supplement/time/time_gtest/ |
D | sys_clock_test.cpp | 195 timespec ts2; variable 196 result = clock_gettime(CLOCK_MONOTONIC, &ts2); 199 auto end = std::chrono::seconds(ts2.tv_sec) + std::chrono::nanoseconds(ts2.tv_nsec);
|
/third_party/python/Lib/sqlite3/test/ |
D | types.py | 423 ts2 = self.cur.fetchone()[0] 424 self.assertEqual(ts, ts2) 438 ts2 = self.cur.fetchone()[0] 439 self.assertEqual(ts, ts2) 445 ts2 = self.cur.fetchone()[0] 446 self.assertEqual(ts, ts2)
|
/third_party/typescript/tests/baselines/reference/ |
D | constAssertions.js | 80 const ts2 = ff2('foo', !!true ? '0' : '1'); constant 175 const ts2 = ff2('foo', !!true ? '0' : '1'); constant 304 declare const ts2: "foo-1" | "foo-0";
|
D | constAssertions.symbols | 295 const ts2 = ff2('foo', !!true ? '0' : '1'); 296 >ts2 : Symbol(ts2, Decl(constAssertions.ts, 78, 5))
|
D | constAssertions.errors.txt | 94 const ts2 = ff2('foo', !!true ? '0' : '1');
|
D | constAssertions.types | 414 const ts2 = ff2('foo', !!true ? '0' : '1'); 415 >ts2 : "foo-1" | "foo-0"
|
/third_party/python/Doc/library/ |
D | graphlib.rst | 180 >>> ts2 = TopologicalSorter() 181 >>> ts2.add(1, 0) 182 >>> ts2.add(3, 2, 1) 183 >>> print([*ts2.static_order()])
|
/third_party/typescript/tests/cases/conformance/expressions/typeAssertions/ |
D | constAssertions.ts | 83 const ts2 = ff2('foo', !!true ? '0' : '1'); constant
|
/third_party/gstreamer/gstplugins_good/tests/check/elements/ |
D | level.c | 551 GstClockTime ts1, dur1, ts2; in GST_START_TEST() local 578 gst_structure_get_clock_time (structure, "timestamp", &ts2); in GST_START_TEST() 581 fail_unless_equals_int64 (ts1 + dur1, ts2); in GST_START_TEST()
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/ |
D | gstvideoutils.h | 296 GstClockTime ts2; member
|