/base/hiviewdfx/hiview/plugins/usage_event_report/ |
D | usage_event_report.cpp | 71 auto nowTime = TimeUtil::GetMilliseconds(); in Init() 98 …nextReportTime_ = static_cast<uint64_t>(TimeUtil::Get0ClockStampMs()) + TimeUtil::MILLISECS_PER_DA… in Init() 101 if (nowTime >= (lastReportTime_ + TimeUtil::MILLISECS_PER_DAY)) { in Init() 142 auto nowTime = TimeUtil::GetMilliseconds(); in ReportDailyEvent() 143 if (nowTime > (nextReportTime_ + TimeUtil::MILLISECS_PER_DAY) in ReportDailyEvent() 144 || nowTime < (nextReportTime_ - TimeUtil::MILLISECS_PER_DAY)) { in ReportDailyEvent() 146 …nextReportTime_ = static_cast<uint64_t>(TimeUtil::Get0ClockStampMs()) + TimeUtil::MILLISECS_PER_DA… in ReportDailyEvent() 157 lastReportTime_ = TimeUtil::GetMilliseconds(); in ReportDailyEvent() 158 nextReportTime_ += TimeUtil::MILLISECS_PER_DAY; in ReportDailyEvent() 177 lastSysReportTime_ = TimeUtil::GetMilliseconds(); in ReportSysUsageEvent()
|
/base/hiviewdfx/hiview/base/event_pool/test/unittest/common/ |
D | event_pool_test.cpp | 57 auto startTime = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); 77 auto time = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); 82 time = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); 91 time = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); 100 auto end = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); 117 auto startTime = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); 144 auto time = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); 151 time = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); 160 auto end = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); 177 auto startTime = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); [all …]
|
/base/hiviewdfx/hiview/plugins/eventlogger/ |
D | event_logger.cpp | 56 HIVIEW_LOGD("event time:%{public}llu jsonExtraInfo is %{public}s", TimeUtil::GetMilliseconds(), in IsInterestedPipelineEvent() 90 … HIVIEW_LOGD("event time:%{public}llu jsonExtraInfo is %{public}s", TimeUtil::GetMilliseconds(), in OnEvent() 116 uint64_t logTime = event->happenTime_ / TimeUtil::SEC_TO_MILLISEC; in StartLogCollect() 120 + TimeUtil::TimestampFormatToDate(logTime, "%Y%m%d%H%M%S") + ".log"; in StartLogCollect() 133 auto start = TimeUtil::GetMilliseconds(); in StartLogCollect() 134 uint64_t startTime = start / TimeUtil::SEC_TO_MILLISEC; in StartLogCollect() 135 std::string startTimeStr = TimeUtil::TimestampFormatToDate(startTime, "%Y/%m/%d-%H:%M:%S"); in StartLogCollect() 136 startTimeStr += ":" + std::to_string(start % TimeUtil::SEC_TO_MILLISEC); in StartLogCollect() 142 auto end = TimeUtil::GetMilliseconds(); in StartLogCollect() 162 uint64_t logTime = event->happenTime_ / TimeUtil::SEC_TO_MILLISEC; in WriteCommonHead() [all …]
|
/base/hiviewdfx/hiview/plugins/eventservice/store/ |
D | sys_event_db_cleaner.cpp | 37 const int64_t MILLISECS_PER_HOUR = TimeUtil::SECONDS_PER_HOUR * TimeUtil::SEC_TO_MILLISEC; 60 int64_t delEndTime = static_cast<int64_t>(TimeUtil::GetMilliseconds()); in TryToCleanDb()
|
D | sys_event_db_mgr.cpp | 55 int delay = TimeUtil::SECONDS_PER_HOUR; // 1 hour in StartCheckStoreTask()
|
/base/hiviewdfx/hiview/plugins/freeze_detector/test/unittest/common/ |
D | freeze_detector_unittest.cpp | 164 .InitTimestamp(TimeUtil::GetMilliseconds()) 170 .InitTimestamp(TimeUtil::GetMilliseconds()) 193 .InitTimestamp(TimeUtil::GetMilliseconds()) 199 .InitTimestamp(TimeUtil::GetMilliseconds())
|
D | freeze_detector_test.cpp | 44 auto time = TimeUtil::GetMilliseconds(); in makeEvent() 58 sysEvent->SetEventValue("tz_", TimeUtil::GetTimeZone()); in makeEvent() 188 sysEvent->SetEventValue("time_", TimeUtil::GetMilliseconds()); 192 sysEvent->SetEventValue("tz_", TimeUtil::GetTimeZone());
|
/base/security/access_token/services/privacymanager/include/common/ |
D | time_util.h | 22 class TimeUtil {
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/include/ |
D | time_util.h | 22 namespace TimeUtil {
|
/base/hiviewdfx/hiview/adapter/utility/ |
D | time_util.cpp | 22 namespace TimeUtil { namespace
|
/base/hiviewdfx/hiview/plugins/usage_event_report/service/factory/ |
D | app_usage_event_factory.cpp | 97 int64_t today0Time = TimeUtil::Get0ClockStampMs(); in GetAppUsageInfosByUserId() 98 int64_t gapTime = static_cast<int64_t>(TimeUtil::MILLISECS_PER_DAY); in GetAppUsageInfosByUserId() 111 std::string dateStr = TimeUtil::TimestampFormatToDate(startTime / MILLISEC_TO_SEC, DATE_FORMAT); in GetAppUsageInfosByUserId()
|
D | sys_usage_event_factory.cpp | 40 event->Update(KEY_OF_END, TimeUtil::GetMilliseconds()); in Create()
|
/base/security/access_token/services/privacymanager/src/common/ |
D | time_util.cpp | 22 int64_t TimeUtil::GetCurrentTimestamp() in GetCurrentTimestamp()
|
/base/hiviewdfx/hiview/adapter/utility/platform/ohos/ |
D | common_utils.cpp | 61 uint64_t startTime = TimeUtil::GetNanoTime(); in ExecCommand() 68 uint64_t duration = TimeUtil::GetNanoTime() - startTime; in ExecCommand()
|
/base/security/access_token/services/privacymanager/src/database/ |
D | data_translator.cpp | 39 int64_t beginTime = TimeUtil::GetCurrentTimestamp() - Constant::LATEST_RECORD_TIME; in TranslationIntoGenericValues() 41 end = TimeUtil::GetCurrentTimestamp(); in TranslationIntoGenericValues()
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/ |
D | time_util.cpp | 23 namespace TimeUtil { namespace
|
/base/hiviewdfx/hiview/base/event_pool/ |
D | event_thread_pool.cpp | 62 uint64_t targetTime = TimeUtil::GetMilliseconds() + delay; in AddTask() 103 uint64_t now = TimeUtil::GetMilliseconds(); in TaskCallback()
|
D | event_thread_pool.h | 35 seq = TimeUtil::GetNanoTime(); in TaskEvent()
|
/base/hiviewdfx/hiview/plugins/eventlogger/test/unittest/common/ |
D | event_logger_plugin_test.cpp | 174 event->happenTime_ = TimeUtil::GetMilliseconds(); 200 event->happenTime_ = TimeUtil::GetMilliseconds(); 226 event->happenTime_ = TimeUtil::GetMilliseconds(); 252 event->happenTime_ = TimeUtil::GetMilliseconds();
|
/base/hiviewdfx/hiview/core/ |
D | platform_monitor.h | 82 uint32_t collectPeriod_ = 5 * TimeUtil::SECONDS_PER_MINUTE; // 5 minute 83 uint32_t reportPeriod_ = TimeUtil::SECONDS_PER_HOUR; // one hour
|
D | platform_monitor.cpp | 108 curRealSpeed_ = (TimeUtil::SEC_TO_MICROSEC * onceTotalCnt) / onceTotalRealTime; in CollectPerfProfiler() 121 curProcSpeed_ = (TimeUtil::SEC_TO_MICROSEC * onceTotalCnt) / onceTotalProcTime; in CollectPerfProfiler() 390 breakTimestamp_ = TimeUtil::GenerateTimestamp(); in Breaking() 397 TimeUtil::Sleep(SLEEP_TEN_SECONDS); in Breaking() 400 recoverTimestamp_ = TimeUtil::GenerateTimestamp(); in Breaking()
|
/base/hiviewdfx/hiview/adapter/utility/test/unittest/common/ |
D | adapter_utility_ohos_test.cpp | 144 auto time = TimeUtil::GetMillSecOfSec(); 147 TimeUtil::Sleep(sleepSecs); 159 auto time1 = TimeUtil::Get0ClockStampMs(); 160 auto time2 = TimeUtil::GetSteadyClockTimeMs();
|
/base/hiviewdfx/hiview/adapter/utility/include/ |
D | time_util.h | 26 namespace TimeUtil {
|
/base/hiviewdfx/hiview/utility/common_utils/ |
D | tbox.cpp | 159 uint64_t startTime = TimeUtil::GetNanoTime(); in WaitForDoneFile() 161 uint64_t duration = TimeUtil::GetNanoTime() - startTime; in WaitForDoneFile()
|
/base/hiviewdfx/hiview/plugins/hicollie_collector/test/unittest/common/ |
D | hicollie_collector_test.cpp | 42 auto time = TimeUtil::GetMilliseconds(); in makeEvent() 56 sysEvent->SetEventValue("tz_", TimeUtil::GetTimeZone()); in makeEvent()
|