Home
last modified time | relevance | path

Searched refs:SEC_TO_MILLISEC (Results 1 – 11 of 11) sorted by relevance

/base/security/device_security_level/baselib/utils/src/
Dutils_datetime.c26 #define SEC_TO_MILLISEC 1000 macro
39 result = (uint64_t)(ts.tv_sec * SEC_TO_MILLISEC + ts.tv_nsec / MILLISEC_TO_NANOSEC); in GetMillisecondSinceBoot()
52 return ts.tv_sec * SEC_TO_MILLISEC + ts.tv_nsec / MILLISEC_TO_NANOSEC; in GetMillisecondSince1970()
61 time_t time = (time_t)(input / SEC_TO_MILLISEC); in GetDateTimeByMillisecondSince1970()
70 datetime->msec = (uint16_t)(input % SEC_TO_MILLISEC); in GetDateTimeByMillisecondSince1970()
/base/hiviewdfx/hiview/plugins/usage_event_report/service/factory/
Dsys_usage_event_factory.cpp34 constexpr uint64_t SEC_TO_MILLISEC = 1000; variable
87 return screenTime * SEC_TO_MILLISEC; in GetScreenTime()
/base/hiviewdfx/hiview/base/utility/
Dtime_util.cpp52 return millisecs.count() % SEC_TO_MILLISEC; in GetMillSecOfSec()
101 zero = std::mktime(l) * SEC_TO_MILLISEC; // time is 00:00:00 in Get0ClockStampMs()
130 std::time_t tt = static_cast<std::time_t>(timestamp / SEC_TO_MILLISEC); in FormatTime()
Dcommon_utils.cpp163 uint64_t endTime = TimeUtil::GetMilliseconds() + maxWaitingTime * TimeUtil::SEC_TO_MILLISEC; in WriteCommandResultToFile()
/base/hiviewdfx/hiview/base/utility/include/
Dtime_util.h29 constexpr int64_t SEC_TO_MILLISEC = 1000; variable
/base/hiviewdfx/hiview/plugins/eventlogger/
Devent_logger.cpp155 uint64_t logTime = event->happenTime_ / TimeUtil::SEC_TO_MILLISEC; in Getfile()
200 uint64_t startTime = start / TimeUtil::SEC_TO_MILLISEC; in StartLogCollect()
202 startTimeStr += ":" + std::to_string(start % TimeUtil::SEC_TO_MILLISEC); in StartLogCollect()
225 auto logTime = TimeUtil::GetMilliseconds() / TimeUtil::SEC_TO_MILLISEC; in GetHitraceName()
315 uint64_t logTime = event->happenTime_ / TimeUtil::SEC_TO_MILLISEC; in WriteCommonHead()
316 uint64_t logTimeMs = event->happenTime_ % TimeUtil::SEC_TO_MILLISEC; in WriteCommonHead()
/base/hiviewdfx/hidumper/frameworks/native/src/executor/
Dhidumper_executor.cpp40 timeOutMillSec_ = parameter->GetOpts().timeout_ * SEC_TO_MILLISEC; in DoPreExecute()
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/
Ddmesg_catcher.cpp101 auto logTime = TimeUtil::GetMilliseconds() / TimeUtil::SEC_TO_MILLISEC; in DmesgSaveTofile()
/base/hiviewdfx/hiview/plugins/freeze_detector/
Dvendor.cpp120 uint64_t timestamp = watchPoint.GetTimestamp() / TimeUtil::SEC_TO_MILLISEC; in DumpEventInfo()
126 ":" << watchPoint.GetTimestamp() % TimeUtil::SEC_TO_MILLISEC << std::endl; in DumpEventInfo()
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/js/napi/
Dnapi_faultlogger.cpp240 constexpr int64_t SEC_TO_MILLISEC = 1000; in AddFaultLog() local
241 AddFaultLog(now * SEC_TO_MILLISEC, logType, module, summary); in AddFaultLog()
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
Dsys_event_service_ohos.cpp537 … (std::abs(currentTime - lastTimeStamp) < TimeUtil::SECONDS_PER_HOUR * TimeUtil::SEC_TO_MILLISEC) { in Export()