/third_party/ltp/lib/newlib_tests/ |
H A D | test_timer.c | 81 long long nsec = tst_ts_get_nsec(ts); in test_add_sub() local 84 if (sec != 1 || nsec != 0) in test_add_sub() 85 tst_res(TFAIL, "sec = %lli, nsec = %lli", sec, nsec); in test_add_sub() 87 tst_res(TPASS, "sec = %lli, nsec = %lli", sec, nsec); in test_add_sub() 93 nsec = tst_ts_get_nsec(ts); in test_add_sub() 96 if (sec != 0 || nsec != 999999000) in test_add_sub() 97 tst_res(TFAIL, "sec = %lli, nsec = %lli", sec, nsec); in test_add_sub() [all...] |
/third_party/selinux/libsepol/src/ |
H A D | module.c | 380 uint32_t *buf = NULL, nsec; in module_package_read_offsets() local 404 nsec = *sections = le32_to_cpu(buf[2]); in module_package_read_offsets() 406 if (nsec > MAXSECTIONS) { in module_package_read_offsets() 408 nsec); in module_package_read_offsets() 412 off = (size_t *) calloc(nsec + 1, sizeof(size_t)); in module_package_read_offsets() 419 buf = calloc(nsec, sizeof(uint32_t)); in module_package_read_offsets() 424 rc = next_entry(buf, file, sizeof(uint32_t) * nsec); in module_package_read_offsets() 430 for (i = 0; i < nsec; i++) { in module_package_read_offsets() 440 rc = policy_file_length(file, &off[nsec]); in module_package_read_offsets() 444 if (nsec in module_package_read_offsets() 471 uint32_t buf[1], nsec; sepol_module_package_read() local 657 uint32_t buf[5], len, nsec; sepol_module_package_info() local 870 uint32_t buf[5], offsets[5], len, nsec = 0; sepol_module_package_write() local [all...] |
/third_party/ltp/include/ |
H A D | tst_timer.h | 432 static inline void tst_ts_set_nsec(struct tst_ts *ts, long long nsec) in tst_ts_set_nsec() argument 436 ts->ts.libc_ts.tv_nsec = nsec; in tst_ts_set_nsec() 439 ts->ts.kern_old_ts.tv_nsec = nsec; in tst_ts_set_nsec() 442 ts->ts.kern_ts.tv_nsec = nsec; in tst_ts_set_nsec() 502 static inline void tst_its_set_interval_nsec(struct tst_its *its, long long nsec) in tst_its_set_interval_nsec() argument 507 its->ts.kern_old_its.it_interval.tv_nsec = nsec; in tst_its_set_interval_nsec() 510 its->ts.kern_its.it_interval.tv_nsec = nsec; in tst_its_set_interval_nsec() 570 static inline void tst_its_set_value_nsec(struct tst_its *its, long long nsec) in tst_its_set_value_nsec() argument 575 its->ts.kern_old_its.it_value.tv_nsec = nsec; in tst_its_set_value_nsec() 578 its->ts.kern_its.it_value.tv_nsec = nsec; in tst_its_set_value_nsec() 595 long long nsec = tst_ts_get_nsec(*t); tst_ts_valid() local 795 long long nsec = tst_ts_get_nsec(t); tst_ts_normalize() local [all...] |
/third_party/mesa3d/src/gallium/frontends/xvmc/tests/ |
H A D | testlib.c | 127 int nsec = (y->tv_usec - x->tv_usec) / 1000000 + 1; in timeval_subtract() local 128 y->tv_usec -= 1000000 * nsec; in timeval_subtract() 129 y->tv_sec += nsec; in timeval_subtract() 133 int nsec = (x->tv_usec - y->tv_usec) / 1000000; in timeval_subtract() local 134 y->tv_usec += 1000000 * nsec; in timeval_subtract() 135 y->tv_sec -= nsec; in timeval_subtract()
|
/third_party/ltp/testcases/kernel/syscalls/timer_settime/ |
H A D | timer_settime03.c | 76 long nsec; in run() local 82 nsec = (handler_delay % 100000000) * 10L; in run() 84 if (nsec > spec.it_value.tv_nsec) { in run() 92 spec.it_value.tv_nsec -= nsec; in run()
|
/third_party/mesa3d/include/android_stub/log/ |
H A D | log_read.h | 45 uint32_t nsec; /* nanoseconds */ member 63 uint64_t nsec() const { in nsec() function 64 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
|
H A D | log_time.h | 45 explicit log_time(uint32_t sec, uint32_t nsec = 0) in log_time() 46 : tv_sec(sec), tv_nsec(nsec) { in log_time() 138 uint64_t nsec() const { in nsec() function
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/ |
H A D | 4-1-buildonly.c | 17 long nsec; in dummyfcn() local 20 nsec = t.tv_nsec; in dummyfcn()
|
/third_party/rust/crates/humantime/src/ |
H A D | duration.rs | 126 let (mut sec, nsec) = match &self.src[start..end] { in parse_unit() 127 "nanos" | "nsec" | "ns" => (0u64, n), in parse_unit() 146 let mut nsec = self.current.1.add(nsec)?; in parse_unit() variables 147 if nsec > 1_000_000_000 { in parse_unit() 148 sec = sec.add(nsec / 1_000_000_000)?; in parse_unit() 149 nsec %= 1_000_000_000; in parse_unit() 152 self.current = (sec, nsec); in parse_unit() 210 /// * `nsec`, `ns` -- nanoseconds 345 assert_eq!(parse_duration("17nsec"), O in test_units() [all...] |
/third_party/alsa-lib/test/ |
H A D | audio_time.c | 45 long long nsec; in timestamp2ns() local 47 nsec = t.tv_sec * 1000000000ULL; in timestamp2ns() 48 nsec += t.tv_nsec; in timestamp2ns() 50 return nsec; in timestamp2ns() 393 printf("\t capture: systime: %lli nsec, audio time %lli nsec, \tsystime delta %lli \t resolution %d ns \n", in main() 435 printf("playback: systime: %lli nsec, audio time %lli nsec, \tsystime delta %lli resolution %d ns\n", in main()
|
/third_party/node/lib/internal/process/ |
H A D | per_thread.js | 86 const nsec = hrValues[2] - time[1]; 87 const needsBorrow = nsec < 0; 88 return [needsBorrow ? sec - 1 : sec, needsBorrow ? nsec + 1e9 : nsec];
|
/third_party/ltp/testcases/network/stress/ns-tools/ |
H A D | ns-common.c | 332 unsigned long nsec = 0; in strtotimespec() local 342 nsec = strtoul(str + len - 9, NULL, 0); in strtotimespec() 344 nsec = strtoul(str, NULL, 0); in strtotimespec() 348 ts_p->tv_nsec = nsec; in strtotimespec()
|
/third_party/node/deps/openssl/openssl/crypto/ocsp/ |
H A D | ocsp_cl.c | 306 * allow the times to be within 'nsec' of the current time. Also to avoid 311 ASN1_GENERALIZEDTIME *nextupd, long nsec, long maxsec) in OCSP_check_validity() 317 /* Check thisUpdate is valid and not more than nsec in the future */ in OCSP_check_validity() 322 t_tmp = t_now + nsec; in OCSP_check_validity() 344 /* Check nextUpdate is valid and not more than nsec in the past */ in OCSP_check_validity() 349 t_tmp = t_now - nsec; in OCSP_check_validity() 310 OCSP_check_validity(ASN1_GENERALIZEDTIME *thisupd, ASN1_GENERALIZEDTIME *nextupd, long nsec, long maxsec) OCSP_check_validity() argument
|
/third_party/openssl/crypto/ocsp/ |
H A D | ocsp_cl.c | 306 * allow the times to be within 'nsec' of the current time. Also to avoid 311 ASN1_GENERALIZEDTIME *nextupd, long nsec, long maxsec) in OCSP_check_validity() 317 /* Check thisUpdate is valid and not more than nsec in the future */ in OCSP_check_validity() 322 t_tmp = t_now + nsec; in OCSP_check_validity() 344 /* Check nextUpdate is valid and not more than nsec in the past */ in OCSP_check_validity() 349 t_tmp = t_now - nsec; in OCSP_check_validity() 310 OCSP_check_validity(ASN1_GENERALIZEDTIME *thisupd, ASN1_GENERALIZEDTIME *nextupd, long nsec, long maxsec) OCSP_check_validity() argument
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
H A D | Chrono.h | 51 toTimePoint(std::time_t T, uint32_t nsec) { in toTimePoint() argument 54 + nanoseconds(nsec); in toTimePoint()
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
H A D | ocsp.rs | 126 /// The `nsec` parameter specifies an amount of slack time that will be used when comparing 132 pub fn check_validity(&self, nsec: u32, maxsec: Option<u32>) -> Result<(), ErrorStack> { in check_validity() 137 nsec as c_long, in check_validity()
|
/third_party/python/Python/ |
H A D | pytime.c | 392 _PyTime_ObjectToTimespec(PyObject *obj, time_t *sec, long *nsec, in _PyTime_ObjectToTimespec() argument 395 return pytime_object_to_denominator(obj, sec, nsec, SEC_TO_NS, round); in _PyTime_ObjectToTimespec() 443 long long nsec = PyLong_AsLongLong(obj); in _PyTime_FromNanosecondsObject() local 444 if (nsec == -1 && PyErr_Occurred()) { in _PyTime_FromNanosecondsObject() 451 _PyTime_t t = (_PyTime_t)nsec; in _PyTime_FromNanosecondsObject()
|
/third_party/node/deps/openssl/openssl/apps/ |
H A D | ocsp.c | 67 STACK_OF(OCSP_CERTID) *ids, long nsec, 255 long nsec = MAX_VALIDITY_PERIOD, maxage = -1; in ocsp_main() local 413 opt_long(opt_arg(), &nsec); in ocsp_main() local 846 if (!print_ocsp_summary(out, bs, req, reqnames, ids, nsec, maxage)) in ocsp_main() 968 STACK_OF(OCSP_CERTID) *ids, long nsec, in print_ocsp_summary() 999 if (!OCSP_check_validity(thisupd, nextupd, nsec, maxage)) { in print_ocsp_summary() 966 print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUEST *req, STACK_OF(OPENSSL_STRING) *names, STACK_OF(OCSP_CERTID) *ids, long nsec, long maxage) print_ocsp_summary() argument
|
/third_party/openssl/apps/ |
H A D | ocsp.c | 67 STACK_OF(OCSP_CERTID) *ids, long nsec, 255 long nsec = MAX_VALIDITY_PERIOD, maxage = -1; in ocsp_main() local 413 opt_long(opt_arg(), &nsec); in ocsp_main() local 846 if (!print_ocsp_summary(out, bs, req, reqnames, ids, nsec, maxage)) in ocsp_main() 968 STACK_OF(OCSP_CERTID) *ids, long nsec, in print_ocsp_summary() 999 if (!OCSP_check_validity(thisupd, nextupd, nsec, maxage)) { in print_ocsp_summary() 966 print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUEST *req, STACK_OF(OPENSSL_STRING) *names, STACK_OF(OCSP_CERTID) *ids, long nsec, long maxage) print_ocsp_summary() argument
|
/third_party/node/lib/internal/fs/ |
H A D | utils.js | 458 function msFromTimeSpec(sec, nsec) { 459 return sec * kMsPerSec + nsec / kNsPerMs; 462 function nsFromTimeSpecBigInt(sec, nsec) { 463 return sec * kNsPerSecBigInt + nsec;
|
/third_party/libuv/src/unix/ |
H A D | qnx.c | 117 *uptime = (qtime->nsec / 1000000000.0); in uv_uptime()
|
/third_party/node/deps/uv/src/unix/ |
H A D | qnx.c | 112 *uptime = (qtime->nsec / 1000000000.0); in uv_uptime()
|
/third_party/python/Include/cpython/ |
H A D | pytime.h | 113 nsec is in the range [0; 999999999] and rounded towards zero. 118 long *nsec,
|
/third_party/python/Modules/_multiprocessing/ |
H A D | semaphore.c | 333 long nsec = (long) (1e9 * (timeout - sec) + 0.5); in _multiprocessing_SemLock_acquire_impl() local 335 deadline.tv_nsec = now.tv_usec * 1000 + nsec; in _multiprocessing_SemLock_acquire_impl()
|
/third_party/rust/crates/libc/src/unix/nto/ |
H A D | neutrino.rs | 14 pub nsec: u64, 161 pub nsec: u64, // volatile 199 pub nsec: u32,
|