Home
last modified time | relevance | path

Searched refs:msec (Results 1 – 9 of 9) sorted by relevance

/base/powermgr/powermgr_lite/utils/include/
Dpower_mgr_time_util.h59 static inline int64_t MsecToNsec(int64_t msec) in MsecToNsec() argument
61 return msec * NSEC_PER_MSEC; in MsecToNsec()
64 static inline int64_t MsecToUsec(int64_t msec) in MsecToUsec() argument
66 return msec * USEC_PER_MSEC; in MsecToUsec()
69 static inline int64_t MsecToSec(int64_t msec) in MsecToSec() argument
71 return msec / MSEC_PER_SEC; in MsecToSec()
74 static inline int64_t MsecToMin(int64_t msec) in MsecToMin() argument
76 return msec / MSEC_PER_MIN; in MsecToMin()
79 static inline int64_t MsecToHour(int64_t msec) in MsecToHour() argument
81 return msec / MSEC_PER_HOUR; in MsecToHour()
/base/powermgr/powermgr_lite/utils/src/
Dpower_mgr_timer_util.c42 static void SetTimeSpec(struct timespec *ts, int64_t msec) in SetTimeSpec() argument
44 ts->tv_sec = MsecToSec(msec); in SetTimeSpec()
45 msec -= SecToMsec(ts->tv_sec); in SetTimeSpec()
46 ts->tv_nsec = MsecToNsec(msec); in SetTimeSpec()
/base/security/device_security_level/baselib/utils/include/
Dutils_datetime.h30 uint16_t msec; member
/base/security/device_security_level/baselib/utils/src/
Dutils_datetime.c60 datetime->msec = (uint16_t)(input % SEC_TO_MILLISEC); in GetDateTimeByMillisecondSince1970()
/base/telephony/ril_adapter/services/vendor/include/
Dvendor_util.h63 void SetWaitTimeout(struct timespec *time, long long msec);
/base/startup/init/services/param/liteos/
Dparam_osadp.c51 static void SetTimeSpec(struct timespec *ts, int64_t msec) in SetTimeSpec() argument
53 ts->tv_sec = msec / MSEC_PER_SEC; // 1000LL ms --> m in SetTimeSpec()
54 ts->tv_nsec = (msec - ts->tv_sec * MSEC_PER_SEC) * NSEC_PER_MSEC; in SetTimeSpec()
/base/telephony/ril_adapter/services/vendor/src/
Dvendor_util.c121 void SetWaitTimeout(struct timespec *time, long long msec) in SetWaitTimeout() argument
129 time->tv_nsec = (now.tv_usec + (msec % COUNT) * def) * def; in SetWaitTimeout()
130 time->tv_sec = now.tv_sec + (msec / COUNT); in SetWaitTimeout()
/base/hiviewdfx/hilog/services/hilogtool/
Dlog_display.cpp135 uint32_t msec = tv_nsec / NS2MS; in DurationStr() local
137 ret = snprintf_s(buffer, TIME_W, TIME_W - 1, "%uh%um%us.%u", hour, min, sec, msec); in DurationStr()
/base/security/device_security_level/services/dfx/
Ddslm_hidumper.c55 …teTime.year, dateTime.mon, dateTime.day, dateTime.hour, dateTime.min, dateTime.sec, dateTime.msec); in GetTimeStringFromTimeStamp()