/ohos5.0/drivers/hdf_core/framework/support/posix/src/ |
H A D | osal_time.c | 30 time->sec = (uint64_t)ts.tv_sec; in OsalGetTime() 39 uint32_t sec = 0; in OsalDiffTime() local 45 if ((start->sec > end->sec) || ((end->sec == start->sec) && (end->usec < start->usec))) { in OsalDiffTime() 52 sec = 1; in OsalDiffTime() 55 if ((start->sec > UINT64_MAX - sec) || (end->usec > UINT64_MAX - usec) || in OsalDiffTime() 56 (end->sec < start->sec + sec) || (end->usec + usec < start->usec)) { in OsalDiffTime() 61 diff->sec = end->sec - start->sec - sec; in OsalDiffTime() 66 void OsalSleep(uint32_t sec) in OsalSleep() argument 68 sleep(sec); in OsalSleep() 114 return (time.sec * HDF_KILO_UNIT + time.usec / HDF_KILO_UNIT); in OsalGetSysTimeMs()
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/ |
H A D | osal_time.c | 49 time->sec = ms / HDF_KILO_UNIT; in OsalGetTime() 58 uint32_t sec = 0; in OsalDiffTime() local 65 if (start->sec > end->sec) { in OsalDiffTime() 72 sec = 1; in OsalDiffTime() 75 diff->sec = end->sec - start->sec - sec; in OsalDiffTime() 85 void OsalSleep(uint32_t sec) in OsalSleep() argument 87 LOS_Msleep(sec * HDF_KILO_UNIT); in OsalSleep()
|
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/osal/src/ |
H A D | osal_time.c | 45 time->sec = ts.tv_sec; in OsalGetTime() 55 uint32_t sec = 0; in OsalDiffTime() local 61 if (start->sec > end->sec) { in OsalDiffTime() 68 sec = 1; in OsalDiffTime() 71 diff->sec = end->sec - start->sec - sec; in OsalDiffTime() 77 void OsalSleep(uint32_t sec) in OsalSleep() argument 79 msleep(sec * HDF_KILO_UNIT); in OsalSleep() 108 return (time.sec * HDF_KILO_UNIT + OsalDivS64(time.usec, HDF_KILO_UNIT)); in OsalGetSysTimeMs()
|
/ohos5.0/drivers/hdf_core/adapter/khdf/uniproton/osal/src/ |
H A D | osal_time.c | 50 time->sec = ms / HDF_KILO_UNIT; in OsalGetTime() 59 uint32_t sec = 0; in OsalDiffTime() local 66 if (start->sec > end->sec) { in OsalDiffTime() 73 sec = 1; in OsalDiffTime() 76 diff->sec = end->sec - start->sec - sec; in OsalDiffTime() 86 void OsalSleep(uint32_t sec) in OsalSleep() argument 88 (void)PRT_TaskDelay(sec * OS_TICK_PER_SECOND); in OsalSleep()
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/osal/src/ |
H A D | osal_time.c | 50 time->sec = ms / HDF_KILO_UNIT; in OsalGetTime() 59 uint32_t sec = 0; in OsalDiffTime() local 66 if (start->sec > end->sec) { in OsalDiffTime() 73 sec = 1; in OsalDiffTime() 76 diff->sec = end->sec - start->sec - sec; in OsalDiffTime() 86 void OsalSleep(uint32_t sec) in OsalSleep() argument 88 LOS_Msleep(sec * HDF_KILO_UNIT); in OsalSleep()
|
/ohos5.0/foundation/ai/ai_engine/services/common/platform/time/source/ |
H A D | time.cpp | 28 std::chrono::seconds sec = std::chrono::duration_cast<std::chrono::seconds>(d); in GetCurTimeSec() local 29 return sec.count(); in GetCurTimeSec() 35 std::chrono::milliseconds sec = std::chrono::duration_cast<std::chrono::milliseconds>(d); in GetCurTimeMillSec() local 36 return sec.count(); in GetCurTimeMillSec()
|
/ohos5.0/base/powermgr/thermal_manager/services/native/src/thermal_observer/ |
H A D | thermal_service_subscriber.cpp | 90 int32_t sec = 0; in SetHistoryTypeTempMap() local 92 sec = static_cast<int32_t>(difftime(endTime_, startTime_)) / magnification_; in SetHistoryTypeTempMap() 94 THERMAL_HILOGD(COMP_SVC, "SetHistoryTypeTempMap: sec=%{public}d", sec); in SetHistoryTypeTempMap() 101 if (sec == SEC_MIN_NUM) { in SetHistoryTypeTempMap() 102 rate = (sum / THOUSAND_UNIT / sec) * SEC_MIN_NUM; in SetHistoryTypeTempMap()
|
/ohos5.0/foundation/multimedia/media_foundation/engine/include/plugin/common/ |
H A D | plugin_time.h | 73 inline bool Sec2HstTime (int64_t sec, int64_t& hTime) in Sec2HstTime() argument 75 if (INT64_MAX / HST_SECOND < sec || INT64_MIN / HST_SECOND > sec) { // overflow in Sec2HstTime() 78 hTime = sec * HST_SECOND; in Sec2HstTime()
|
/ohos5.0/docs/zh-cn/third-party-cases/ |
H A D | Mouse-operation.md | 56 Button(this.flag ? `${this.sec}`+ "s" :"验证码",{type: ButtonType.Normal}) 97 if (this.sec <= 0){ 100 this.sec-- 125 @State sec: number = 60 133 if (this.sec <= 0){ 136 this.sec-- 172 Button(this.flag ? `${this.sec}`+ "s" :"验证码",{type: ButtonType.Normal})
|
/ohos5.0/base/powermgr/powermgr_lite/utils/include/ |
H A D | power_mgr_time_util.h | 84 static inline int64_t SecToNsec(int64_t sec) in SecToNsec() argument 86 return sec * NSEC_PER_SEC; in SecToNsec() 89 static inline int64_t SecToMsec(int64_t sec) in SecToMsec() argument 91 return sec * MSEC_PER_SEC; in SecToMsec()
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/common/src/ |
H A D | trans_pending_pkt.c | 88 return (now.sec < inputTime->sec || (now.sec == inputTime->sec && now.usec < inputTime->usec)); in TimeBefore() 120 outTime->sec = (type == PENDING_TYPE_UDP) ? now.sec : now.sec + MSG_TIMEOUT_S; in FormalizeTimeFormat() 125 outTime->sec += 1; in FormalizeTimeFormat() 127 … limit, after formalize, us=%{public}" PRId64 "sec=%{public}" PRId64, outTime->usec, outTime->sec); in FormalizeTimeFormat()
|
/ohos5.0/foundation/multimedia/media_foundation/interface/inner_api/plugin/ |
H A D | plugin_time.h | 84 inline bool Sec2HstTime (int64_t sec, int64_t& hTime) in Sec2HstTime() argument 86 if (INT64_MAX / HST_SECOND < sec || INT64_MIN / HST_SECOND > sec) { // overflow in Sec2HstTime() 89 hTime = sec * HST_SECOND; in Sec2HstTime()
|
/ohos5.0/foundation/ai/intelligent_voice_framework/llt/hdt/depend_libs/cmake/ |
H A D | libsec.cmake | 25 add_library(sec STATIC ${SEC_SRCS}) target 26 target_compile_definitions(sec PRIVATE ${MACRO_DEFINITION_LOG}) 27 set_target_properties(sec PROPERTIES COMPILE_FLAGS "-w")
|
/ohos5.0/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/ |
H A D | log_timestamp.h | 41 explicit LogTimeStamp(uint32_t sec, uint32_t nsec = 0) 42 : tv_sec(sec), tv_nsec(nsec) {} 102 void SetTimeStamp(uint32_t sec, uint32_t nsec) in SetTimeStamp() argument 104 this->tv_sec = sec; in SetTimeStamp()
|
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/proxy/src/ |
H A D | client_trans_pending.c | 138 int64_t time = now.sec * USECTONSEC * USECTONSEC + now.usec + (int64_t)waitMillis * USECTONSEC; in ComputeWaitPendTime() 139 outtime->sec = time / USECTONSEC / USECTONSEC; in ComputeWaitPendTime() 161 if (now.sec > outtime.sec || (now.sec == outtime.sec && now.usec >= outtime.usec)) { in TransPendWaitTime()
|
/ohos5.0/base/hiviewdfx/hilog_lite/services/hilogcat/ |
H A D | hiview_logcat.c | 60 unsigned int sec = head->sec; in main() local 61 rawtime = (time_t)sec; in main()
|
/ohos5.0/docs/zh-cn/application-dev/arkts-utils/ |
H A D | arkts-bytecode-fundamentals.md | 71 在[Script](https://262.ecma-international.org/12.0/#sec-ecmascript-language-scripts-and-modules)编译模式… 103 …](https://262.ecma-international.org/12.0/#sec-imports)和[export](https://262.ecma-international.or… 370 …用的8位保留数字 | 以acc作为参数,执行[ToNumber](https://262.ecma-international.org/12.0/#sec-tonumber),将结果存放到acc… 371 …的8位保留数字 | 以acc作为参数,执行[ToNumeric](https://262.ecma-international.org/12.0/#sec-tonumeric),将结果存放到ac… 395 …://262.ecma-international.org/12.0/#sec-createiterresultobject)A的[next](https://262.ecma-internati… 443 …:acc:对象 | 将acc中所存的对象的[for-in迭代器](https://262.ecma-international.org/12.0/#sec-createiterresultobj… 445 ….ecma-international.org/12.0/#sec-iterator-records)* 的A作为参数,执行[IteratorClose](https://262.ecma-int… 464 … | 对第A个模块,执行[GetModuleNamespace](https://262.ecma-international.org/12.0/#sec-getmodulenamespace)… 492 …international.org/12.0/#sec-generator-objects)* A和acc中存放的异常,执行[AsyncGeneratorReject](https://262.e… 513 ….ecma-international.org/12.0/#sec-iterator-records)* 的A作为参数,执行[IteratorClose](https://262.ecma-int… [all …]
|
/ohos5.0/docs/zh-cn/device-dev/kernel/ |
H A D | kernel-small-debug-shell-file-partinfo.md | 46 part sec start : 20480 47 part sec count : 102400
|
/ohos5.0/drivers/hdf_core/interfaces/inner_api/osal/shared/ |
H A D | osal_time.h | 44 uint64_t sec; /**< Second */ member 57 void OsalSleep(uint32_t sec);
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta5/ |
H A D | js-apidiff-start-up.md | 3 …:N/A|类名:deviceInfo<br>方法 or 属性:const serial: string;<br>权限:ohos.permission.sec.ACCESS_UDID|@ohos.d… 4 …权限:N/A|类名:deviceInfo<br>方法 or 属性:const udid: string;<br>权限:ohos.permission.sec.ACCESS_UDID|@ohos.d…
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta5/ |
H A D | js-apidiff-start-up.md | 3 …od or attribute name: const serial: string;<br>Permission: ohos.permission.sec.ACCESS_UDID|@ohos.d… 4 …thod or attribute name: const udid: string;<br>Permission: ohos.permission.sec.ACCESS_UDID|@ohos.d…
|
/ohos5.0/docs/en/device-dev/kernel/ |
H A D | kernel-small-debug-shell-file-partinfo.md | 46 part sec start : 20480 47 part sec count : 102400
|
/ohos5.0/commonlibrary/c_utils/base/include/ |
H A D | datetime_ex.h | 58 constexpr inline int64_t SecToNanosec(int64_t sec) in SecToNanosec() argument 60 return sec * SEC_TO_NANOSEC; in SecToNanosec()
|
/ohos5.0/base/startup/init/test/unittest/init/ |
H A D | utils_unittest.cpp | 71 float sec = ConvertMicrosecondToSecond(1000000); // 1000000 microseconds variable 72 EXPECT_EQ(sec, 1);
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/model/network/wifi/unittest/message/ |
H A D | hdf_single_node_message_test.c | 216 HDF_LOGI("Process time %llu \n", diffTime.sec); in MessageSingleNodeTest003() 217 MSG_BREAK_IF(errCode, diffTime.sec > SYNC_MESSAGE_TIMEOUT); in MessageSingleNodeTest003() 322 HDF_LOGW("Process time %llu \n", diffTime.sec); in MessageSingleNodeTest005() 323 MSG_BREAK_IF(errCode, diffTime.sec > ASYNC_MESSAGE_TIMEOUT); in MessageSingleNodeTest005()
|