Home
last modified time | relevance | path

Searched refs:timespec (Results 1 - 25 of 360) sorted by relevance

12345678910>>...15

/foundation/ai/intelligent_voice_framework/utils/
H A Dtime_util.h46 timespec timeStart_ { 0, 0 };
58 static void GetTime(timespec &start);
59 static uint32_t TimeElapse(const timespec &start);
60 static void TimeElapse(const timespec &start, const timespec &end);
61 static long TimeElapseUs(const timespec &start, const timespec &end);
65 inline void TimeUtil::GetTime(timespec &start) in GetTime()
72 inline uint32_t TimeUtil::TimeElapse(const timespec &start) in TimeElapse()
74 timespec curren in TimeElapse()
[all...]
/test/xts/hats/kernel/syscalls/timer/clockgettime/
H A DClockGetTimeApiTest.cpp31 static struct timespec g_timeTs;
68 struct timespec ts; in HWTEST_F()
88 struct timespec ts; in HWTEST_F()
107 struct timespec ts; in HWTEST_F()
108 struct timespec tsSec; in HWTEST_F()
129 struct timespec ts; in HWTEST_F()
130 struct timespec tsSec; in HWTEST_F()
151 struct timespec ts; in HWTEST_F()
152 struct timespec tsSec; in HWTEST_F()
173 struct timespec t in HWTEST_F()
[all...]
/test/xts/acts/commonlibrary/thirdparty/musl32/entry/src/main/cpp/
H A Dfnmatchndk32.cpp82 extern "C" int __clock_gettime64(clockid_t, struct timespec *);
86 struct timespec timeSpec {}; in clock_getTime64()
94 const struct timespec *__restrict);
100 const struct timespec timeSpec {}; in PThread_cond_timedWait_time64()
107 extern "C" int __nanosleep_time64(const struct timespec *, struct timespec *);
111 struct timespec timeSpec { in NanoSleep_time64()
159 extern "C" int __utimensat_time64(int, const char *, const struct timespec[2], int);
171 struct timespec times[] = {{.tv_sec = PARAM_0}, {.tv_sec = sec}}; in UTimeNsAt_time64()
185 extern "C" int __clock_getres_time64(clockid_t, struct timespec *);
[all...]
H A Dfnmatchndk132.cpp56 extern "C" int __cnd_timedwait_time64(cnd_t *__restrict, mtx_t *__restrict, const struct timespec *__restrict);
62 struct timespec ts {}; in Cnd_timedWait_time64_One()
89 struct timespec ts {}; in Cnd_timedWait_time64_Two()
167 const struct timespec *__restrict);
171 struct timespec ts {}; in PThreadCondTimedWaitTime64Thread()
188 struct timespec ts { in PThread_cond_timedWait_time64_One()
223 extern "C" int __sem_timedwait_time64(sem_t *__restrict, const struct timespec *__restrict);
227 struct timespec ts; in SemTimedWaitTime64Thread()
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/interface/
H A Dnstackx_timer.h41 NSTACKX_EXPORT uint32_t GetTimeDiffMs(const struct timespec *etv, const struct timespec *stv);
46 NSTACKX_EXPORT uint32_t GetTimeDiffUs(const struct timespec *etv, const struct timespec *stv);
/test/testfwk/developer_test/examples/sleep/src/
H A Dsleep_ex.cpp43 static int Nsleep(const struct timespec *req, struct timespec *rem) in Nsleep()
45 struct timespec tempRem; in Nsleep()
55 struct timespec req = {0, 0}; in Msleep()
56 struct timespec rem = {0, 0}; in Msleep()
/test/xts/hats/kernel/syscalls/timer/nanosleep/
H A DNanoSleepApiTest.cpp61 struct timespec req = {0, 100000L}; in HWTEST_F()
63 struct timespec rem; in HWTEST_F()
102 struct timespec req = {0, 100}; in HWTEST_F()
103 struct timespec rem; in HWTEST_F()
/base/security/device_auth/deps_adapter/os_adapter/impl/src/
H A Dhc_time.c30 struct timespec start; in HcGetCurTime()
41 struct timespec start; in HcGetCurTimeInMillis()
56 struct timespec end; in HcGetIntervalTime()
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/
H A Dnstackx_timer.c22 uint32_t GetTimeDiffMs(const struct timespec *etv, const struct timespec *stv) in GetTimeDiffMs()
44 uint32_t GetTimeDiffUs(const struct timespec *etv, const struct timespec *stv) in GetTimeDiffUs()
/base/startup/init/interfaces/innerkits/include/
H A Dinit_utils.h68 struct timespec startTime;
69 struct timespec endTime;
104 INIT_LOCAL_API uint32_t IntervalTime(struct timespec *startTime, struct timespec *endTime);
187 long long GetUptimeInMicroSeconds(const struct timespec *uptime);
/test/xts/acts/kernel_lite/utils/
H A Dutils.cpp55 struct timespec time1 = { 0, 0 }; in KeepRun()
56 struct timespec time2 = { 0, 0 }; in KeepRun()
143 struct timespec time1 = { timeoutSec, 0 }; in RunElf()
234 void GetDelayedTime(struct timespec *ts, unsigned int ms) in GetDelayedTime()
238 struct timespec tsNow = { 0 }; in GetDelayedTime()
245 int GetTimeDiff(struct timespec ts1, struct timespec ts2) in GetTimeDiff()
/test/xts/hats/kernel/syscalls/fileio/clocknanosleep/
H A DClockNanoSleepApiTest.cpp60 struct timespec req = {1, 0}; in HWTEST_F()
61 struct timespec rem; in HWTEST_F()
100 struct timespec req = {0, 100}; in HWTEST_F()
/test/xts/hats/kernel/posix_interface/interface_gn/utils/
H A Dutils.h118 void GetDelayedTime(struct timespec *ts, unsigned int ms);
124 int GetTimeDiff(struct timespec ts1, struct timespec ts2);
H A Dutils.cpp52 struct timespec time1 = { 0, 0 }; in KeepRun()
53 struct timespec time2 = { 0, 0 }; in KeepRun()
212 struct timespec time1 = { timeoutSec, 0 }; in RunElf()
322 void GetDelayedTime(struct timespec *ts, unsigned int ms) in GetDelayedTime()
326 struct timespec tsNow = { 0 }; in GetDelayedTime()
333 int GetTimeDiff(struct timespec ts1, struct timespec ts2) in GetTimeDiff()
/foundation/multimedia/camera_lite/test/unittest/
H A Dcamera_lite_test.cpp600 struct timespec tv1 = {0}; in HWTEST_F()
601 struct timespec tv2 = {0}; in HWTEST_F()
626 struct timespec tv1 = {0}; in HWTEST_F()
627 struct timespec tv2 = {0}; in HWTEST_F()
670 struct timespec tv1 = {0}; in HWTEST_F()
671 struct timespec tv2 = {0}; in HWTEST_F()
713 struct timespec tv1 = {0}; in HWTEST_F()
714 struct timespec tv2 = {0}; in HWTEST_F()
754 struct timespec tv1 = {0}; in HWTEST_F()
755 struct timespec tv in HWTEST_F()
[all...]
/test/xts/acts/multimedia_lite/camera_lite_posix/camera_native/src/
H A DActsMediaCameraTest.cpp588 struct timespec tv1 = {0}; in HWTEST_F()
589 struct timespec tv2 = {0}; in HWTEST_F()
619 struct timespec tv1 = {0}; in HWTEST_F()
620 struct timespec tv2 = {0}; in HWTEST_F()
668 struct timespec tv1 = {0}; in HWTEST_F()
669 struct timespec tv2 = {0}; in HWTEST_F()
716 struct timespec tv1 = {0}; in HWTEST_F()
717 struct timespec tv2 = {0}; in HWTEST_F()
762 struct timespec tv1 = {0}; in HWTEST_F()
763 struct timespec tv in HWTEST_F()
[all...]
/foundation/multimedia/media_foundation/src/osal/task/pthread/
H A Dcondition_variable.cpp28 inline long long TmToNs(struct timespec tm) in TmToNs()
33 inline struct timespec NsToTm(long long ns) in NsToTm()
101 struct timespec timeout = {0, 0}; in WaitFor()
117 struct timespec timeout = {0, 0}; in WaitFor()
/test/xts/acts/kernel_lite/time_posix/src/
H A DSleepTest.cpp44 struct timespec req = {0, 100}; in HWTEST_P()
45 struct timespec rem = {0}; in HWTEST_P()
60 struct timespec req = {0, 100}; in HWTEST_F()
61 struct timespec rem = {0}; in HWTEST_F()
89 // invlid timespec in HWTEST_F()
92 LOG("check invlid timespec: tv_sec=-1 ..."); in HWTEST_F()
97 LOG("check invlid timespec: tv_nsec=-1 ..."); in HWTEST_F()
102 LOG("check invlid timespec: tv_nsec overflow ..."); in HWTEST_F()
/foundation/multimedia/media_foundation/engine/foundation/osal/thread/
H A Dcondition_variable.cpp23 inline long long TmToNs(struct timespec tm) in TmToNs()
28 inline struct timespec NsToTm(long long ns) in NsToTm()
93 struct timespec timeout = {0, 0}; in WaitFor()
/test/xts/hats/kernel/syscalls/async/pselect/
H A DPselectApiTest.cpp81 timespec timeout; in HWTEST_F()
106 timespec timeout = {0, 0}; in HWTEST_F()
129 timespec timeout = {0, 0}; in HWTEST_F()
/base/startup/appspawn/modules/modulemgr/
H A Dappspawn_modulemgr.h50 struct timespec tmStart;
51 struct timespec tmEnd;
/base/time/time_service/interfaces/inner_api/src/
H A Dtime_service_client.cpp154 bool TimeServiceClient::GetTimeByClockId(clockid_t clockId, struct timespec &tv) in GetTimeByClockId()
468 struct timespec tv {}; in GetWallTimeMs()
480 struct timespec tv {}; in GetWallTimeMs()
493 struct timespec tv {}; in GetWallTimeNs()
505 struct timespec tv {}; in GetWallTimeNs()
518 struct timespec tv {}; in GetBootTimeMs()
530 struct timespec tv {}; in GetBootTimeMs()
543 struct timespec tv {}; in GetBootTimeNs()
555 struct timespec tv {}; in GetBootTimeNs()
568 struct timespec t in GetMonotonicTimeMs()
[all...]
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dthreadsndk.cpp58 struct timespec; in Thrd_create()
131 struct timespec; in Thrd_exit()
157 struct timespec const *tl = (struct timespec const *)arg; in threadfun_sleep()
166 struct timespec ts = {.tv_sec = PARAM_1}; in Thrd_sleep()
175 double ustimer(struct timespec tss, struct timespec tse) in ustimer()
188 struct timespec tss, tse; in Yieldfunc()
200 struct timespec tss, tse; in Thrd_yield()
349 const struct timespec time_poin in Cndtimewaittest()
[all...]
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/include/
H A Dnstackx_dfile_transfer.h118 struct timespec retryAllPacketTs;
119 struct timespec heartBeatTs;
149 struct timespec startTs;
168 struct timespec ts;
235 struct timespec startTime;
247 struct timespec measureBefore;
248 struct timespec ackDropTimer;
/test/xts/hats/kernel/syscalls/fileio/clockgetres/
H A DClockGetresApiTest.cpp57 struct timespec res; in HWTEST_F()
75 struct timespec res = { 0 }; in HWTEST_F()

Completed in 28 milliseconds

12345678910>>...15