Home
last modified time | relevance | path

Searched refs:nsec (Results 1 - 25 of 40) sorted by relevance

12

/third_party/ltp/lib/newlib_tests/
H A Dtest_timer.c81 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 Dmodule.c380 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/mesa3d/src/gallium/frontends/xvmc/tests/
H A Dtestlib.c127 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/include/
H A Dtst_timer.h432 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/ltp/testcases/kernel/syscalls/timer_settime/
H A Dtimer_settime03.c76 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/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/
H A D4-1-buildonly.c17 long nsec; in dummyfcn() local
20 nsec = t.tv_nsec; in dummyfcn()
/third_party/mesa3d/include/android_stub/log/
H A Dlog_read.h45 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 Dlog_time.h45 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/rust/crates/humantime/src/
H A Dduration.rs126 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...]
/foundation/communication/netmanager_ext/frameworks/native/netvpnclient/src/
H A Dvpn_interface.cpp38 int32_t VpnInterface::ConnectControl(int32_t sockfd, int32_t nsec) in ConnectControl() argument
61 tval.tv_sec = nsec; in ConnectControl()
63 ret = select(sockfd + 1, &rset, &wset, NULL, nsec ? &tval : NULL); in ConnectControl()
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/mock/src/
H A Drdb_fault_hiview_reporter.cpp56 std::string RdbFaultHiViewReporter::GetTimeWithMilliseconds(time_t sec, int64_t nsec) in GetTimeWithMilliseconds() argument
59 (void)nsec; in GetTimeWithMilliseconds()
/third_party/alsa-lib/test/
H A Daudio_time.c45 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 Dper_thread.js86 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 Dns-common.c332 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()
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/vpn_manager_test/
H A Dnetworkvpn_client_test.cpp192 int32_t nsec = 1; in HWTEST_F() local
193 int32_t ret = vpnInterface.ConnectControl(fd, nsec); in HWTEST_F()
198 ret = vpnInterface.ConnectControl(fd, nsec); in HWTEST_F()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
H A DChrono.h51 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 Docsp.rs126 /// 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/node/deps/openssl/openssl/crypto/ocsp/
H A Docsp_cl.c306 * 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 Docsp_cl.c306 * 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
/foundation/communication/netmanager_ext/interfaces/innerkits/netvpnclient/include/
H A Dvpn_interface.h36 int32_t ConnectControl(int32_t sockfd, int32_t nsec);
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_datepicker_ffi.h37 int64_t nsec; member
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/include/
H A Dkv_hiview_reporter.h59 static std::string GetTimeWithMilliseconds(time_t sec, int64_t nsec);
/third_party/python/Python/
H A Dpytime.c392 _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()
/foundation/distributeddatamgr/relational_store/frameworks/native/dfx/include/
H A Drdb_fault_hiview_reporter.h63 static std::string GetTimeWithMilliseconds(time_t sec, int64_t nsec);
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
H A Dkv_hiview_reporter.cpp150 std::string KVDBFaultHiViewReporter::GetTimeWithMilliseconds(time_t sec, int64_t nsec) in GetTimeWithMilliseconds() argument
157 oss << buffer << "." << std::setfill('0') << std::setw(MILLISECONDS_LEN) << (nsec / NANO_TO_MILLI) % MILLI_PRE_SEC; in GetTimeWithMilliseconds()

Completed in 15 milliseconds

12