/bionic/libc/bionic/ |
clock.cpp | 37 timespec ts; local 38 if (clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts) == -1) { 41 return (ts.tv_sec * CLOCKS_PER_SEC) + (ts.tv_nsec / (NS_PER_S / CLOCKS_PER_SEC));
|
sys_time.cpp | 38 timespec ts[2]; local 39 if (tv && (!timespec_from_timeval(ts[0], tv[0]) || !timespec_from_timeval(ts[1], tv[1]))) { 43 return utimensat(fd, path, tv ? ts : nullptr, flags); 59 timespec ts[2]; local 60 if (tv && (!timespec_from_timeval(ts[0], tv[0]) || !timespec_from_timeval(ts[1], tv[1]))) { 64 return futimens(fd, tv ? ts : nullptr);
|
/bionic/tests/ |
poll_test.cpp | 44 timespec ts = { .tv_nsec = 100 }; local 45 ASSERT_EQ(0, ppoll(nullptr, 0, &ts, nullptr)); 53 timespec ts = { .tv_nsec = 100 }; local 54 ASSERT_EQ(0, ppoll64(nullptr, 0, &ts, nullptr));
|
/external/bcc/examples/tracing/ |
sync_timing.py | 21 u64 ts, *tsp, delta, key = 0; 35 ts = bpf_ktime_get_ns(); 36 last.update(&key, &ts); 47 (task, pid, cpu, flags, ts, ms) = b.trace_fields() 49 start = ts 50 ts = ts - start variable 51 print("At time %.2f s: multiple syncs detected, last %s ms ago" % (ts, ms))
|
/external/clang/test/SemaCXX/ |
PR9459.cpp | 6 template<typename>struct ts{}ap() // expected-error {{expected ';' after struct}} expected-error {{requires a type specifier}} struct 7 {ts<a>::ap<ae_same<int>::&ae_same<>>::p(a); }; // expected-error {{use of undeclared identifier 'a'}}
|
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
clock_gettime.c | 8 struct timespec ts; local 9 clock_gettime(CLOCK_REALTIME, &ts);
|
/external/strace/tests/ |
sleep.c | 43 struct timespec ts = { atoi(av[1]), 0 }; local 45 if (nanosleep(&ts, NULL))
|
localtime.c | 42 struct timespec ts; local 45 assert(!clock_gettime(CLOCK_REALTIME, &ts)); 51 (long long) ts.tv_sec, (long) (ts.tv_nsec / 1000), pid); 54 (long long) ts.tv_sec, (long) (ts.tv_nsec / 1000));
|
clock_xettime.c | 44 struct timespec ts; member in struct:__anon39543 51 if (syscall(__NR_clock_getres, CLOCK_REALTIME, &t.ts)) 55 (long long) t.ts.tv_sec, 56 zero_extend_signed_to_ull(t.ts.tv_nsec)); 58 if (syscall(__NR_clock_gettime, CLOCK_PROCESS_CPUTIME_ID, &t.ts)) 62 (long long) t.ts.tv_sec, 63 zero_extend_signed_to_ull(t.ts.tv_nsec)); 65 t.ts.tv_sec = 0xdeface1; 66 t.ts.tv_nsec = 0xdeface2; 67 rc = syscall(__NR_clock_settime, CLOCK_THREAD_CPUTIME_ID, &t.ts); [all...] |
umoven-illptr.c | 40 struct timespec ts = { 0, 0 }; local 41 const void *const p = tail_memdup(&ts, sizeof(ts));
|
/external/strace/tests-m32/ |
sleep.c | 43 struct timespec ts = { atoi(av[1]), 0 }; local 45 if (nanosleep(&ts, NULL))
|
localtime.c | 42 struct timespec ts; local 45 assert(!clock_gettime(CLOCK_REALTIME, &ts)); 51 (long long) ts.tv_sec, (long) (ts.tv_nsec / 1000), pid); 54 (long long) ts.tv_sec, (long) (ts.tv_nsec / 1000));
|
clock_xettime.c | 44 struct timespec ts; member in struct:__anon39639 51 if (syscall(__NR_clock_getres, CLOCK_REALTIME, &t.ts)) 55 (long long) t.ts.tv_sec, 56 zero_extend_signed_to_ull(t.ts.tv_nsec)); 58 if (syscall(__NR_clock_gettime, CLOCK_PROCESS_CPUTIME_ID, &t.ts)) 62 (long long) t.ts.tv_sec, 63 zero_extend_signed_to_ull(t.ts.tv_nsec)); 65 t.ts.tv_sec = 0xdeface1; 66 t.ts.tv_nsec = 0xdeface2; 67 rc = syscall(__NR_clock_settime, CLOCK_THREAD_CPUTIME_ID, &t.ts); [all...] |
umoven-illptr.c | 40 struct timespec ts = { 0, 0 }; local 41 const void *const p = tail_memdup(&ts, sizeof(ts));
|
/external/strace/tests-mx32/ |
sleep.c | 43 struct timespec ts = { atoi(av[1]), 0 }; local 45 if (nanosleep(&ts, NULL))
|
localtime.c | 42 struct timespec ts; local 45 assert(!clock_gettime(CLOCK_REALTIME, &ts)); 51 (long long) ts.tv_sec, (long) (ts.tv_nsec / 1000), pid); 54 (long long) ts.tv_sec, (long) (ts.tv_nsec / 1000));
|
clock_xettime.c | 44 struct timespec ts; member in struct:__anon39735 51 if (syscall(__NR_clock_getres, CLOCK_REALTIME, &t.ts)) 55 (long long) t.ts.tv_sec, 56 zero_extend_signed_to_ull(t.ts.tv_nsec)); 58 if (syscall(__NR_clock_gettime, CLOCK_PROCESS_CPUTIME_ID, &t.ts)) 62 (long long) t.ts.tv_sec, 63 zero_extend_signed_to_ull(t.ts.tv_nsec)); 65 t.ts.tv_sec = 0xdeface1; 66 t.ts.tv_nsec = 0xdeface2; 67 rc = syscall(__NR_clock_settime, CLOCK_THREAD_CPUTIME_ID, &t.ts); [all...] |
umoven-illptr.c | 40 struct timespec ts = { 0, 0 }; local 41 const void *const p = tail_memdup(&ts, sizeof(ts));
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setclock/ |
1-2.c | 31 struct timespec ts; local 35 rc = clock_getres(CLOCK_MONOTONIC, &ts);
|
/external/webrtc/webrtc/modules/audio_processing/transient/ |
transient_suppressor_unittest.cc | 21 TransientSuppressor ts; local 22 ts.Initialize(ts::kSampleRate16kHz, ts::kSampleRate16kHz, kNumChannels); 25 EXPECT_FALSE(ts.detection_enabled_); 26 ts.UpdateKeypress(true); 27 EXPECT_TRUE(ts.detection_enabled_); 30 for (int time_ms = 0; time_ms < 3990; time_ms += ts::kChunkSizeMs) { 31 ts.UpdateKeypress(false); 32 EXPECT_TRUE(ts.detection_enabled_) [all...] |
/external/testng/src/test/java/test/sample/ |
JUnitSample4.java | 25 TestSuite ts = new TestSuite("Sample Suite"); local 27 ts.addTest(new T(i)); 29 return ts;
|
/external/tensorflow/tensorflow/core/platform/posix/ |
env_time.cc | 30 struct timespec ts; variable in typeref:struct:tensorflow::__anon45708::PosixEnvTime::timespec 31 clock_gettime(CLOCK_REALTIME, &ts); 32 return (static_cast<uint64>(ts.tv_sec) * kSecondsToNanos + 33 static_cast<uint64>(ts.tv_nsec));
|
/build/kati/ |
timeutil.cc | 26 struct timespec ts; local 27 clock_gettime(CLOCK_REALTIME, &ts); 28 return ts.tv_sec + ts.tv_nsec * 0.001 * 0.001 * 0.001;
|
/external/ltp/testcases/kernel/syscalls/clock_nanosleep2/ |
clock_nanosleep2_01.c | 42 struct timespec ts; local 44 clock_gettime(CLOCK_TO_USE, &ts); 45 ts.tv_nsec += NSEC_IN_SEC/10; 46 if (ts.tv_nsec >= NSEC_IN_SEC) { 47 ts.tv_sec += 1; 48 ts.tv_nsec %= NSEC_IN_SEC; 51 TEST(clock_nanosleep2(CLOCK_TO_USE, TIMER_ABSTIME, &ts, NULL));
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/ |
18-1.c | 34 struct timespec ts; local 46 ts.tv_sec = time(NULL) - 1; 47 ts.tv_nsec = 0; 48 if (mq_timedsend(queue, msgptr, strlen(msgptr), 1, &ts) != 0) {
|