Searched refs:msec (Results 1 – 9 of 9) sorted by relevance
/base/powermgr/powermgr_lite/utils/include/ |
D | power_mgr_time_util.h | 59 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/ |
D | power_mgr_timer_util.c | 42 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/ |
D | utils_datetime.h | 30 uint16_t msec; member
|
/base/security/device_security_level/baselib/utils/src/ |
D | utils_datetime.c | 60 datetime->msec = (uint16_t)(input % SEC_TO_MILLISEC); in GetDateTimeByMillisecondSince1970()
|
/base/telephony/ril_adapter/services/vendor/include/ |
D | vendor_util.h | 63 void SetWaitTimeout(struct timespec *time, long long msec);
|
/base/startup/init/services/param/liteos/ |
D | param_osadp.c | 51 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/ |
D | vendor_util.c | 121 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/ |
D | log_display.cpp | 135 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/ |
D | dslm_hidumper.c | 55 …teTime.year, dateTime.mon, dateTime.day, dateTime.hour, dateTime.min, dateTime.sec, dateTime.msec); in GetTimeStringFromTimeStamp()
|