/base/hiviewdfx/hiview/plugins/freeze_detector/test/moduletest/common/ |
D | freeze_detector_plugin_module_test.cpp | 92 long startTime = time(nullptr); variable 95 auto event = CreateFreezeEvent(json, false, startTime, "APPEXECFWK", "UI_BLOCK_6S"); 101 auto eventTrigger = CreateFreezeEvent(json, false, startTime + 6, "FRAMEWORK", "FWK_BLOCK"); 123 long startTime = time(nullptr); variable 126 auto event = CreateFreezeEvent(json, false, startTime, "APPEXECFWK", "UI_BLOCK_3S"); 133 …auto eventTrigger = CreateFreezeEvent(json, false, startTime + 6, "FRAMEWORK", "APP_NOT_RESPONSE"); 155 long startTime = time(nullptr); variable 158 auto event = CreateFreezeEvent(json, false, startTime, "FRAMEWORK", "TRANSPARENT_WINDOWS"); 179 long startTime = time(nullptr); variable 182 auto event = CreateFreezeEvent(json, false, startTime, "APPEXECFWK", "UI_BLOCK_6S"); [all …]
|
/base/security/device_auth/deps_adapter/os_adapter/impl/src/ |
D | hc_time.c | 36 int64_t HcGetIntervalTime(int64_t startTime) in HcGetIntervalTime() argument 38 if (startTime < 0) { in HcGetIntervalTime() 48 if (end.tv_sec < startTime) { in HcGetIntervalTime() 52 return (end.tv_sec - startTime); in HcGetIntervalTime()
|
/base/sensors/sensor_lite/interfaces/kits/native/test/performance/src/ |
D | sensor_lite_test_performance.cpp | 74 uint64_t startTime = GetCurrentMillSecTime(); variable 77 uint64_t duration = endTime - startTime; 80 startTime, endTime, duration); 109 uint64_t startTime = GetCurrentMillSecTime(); variable 112 uint64_t duration = endTime - startTime; 116 startTime, endTime, duration); 143 uint64_t startTime = GetCurrentMillSecTime(); variable 146 uint64_t duration = endTime - startTime; 149 startTime, endTime, duration); 170 uint64_t startTime = GetCurrentMillSecTime(); variable [all …]
|
/base/msdp/device_status/services/native/src/ |
D | devicestatus_dumper.cpp | 98 std::string startTime; in DumpDevicestatusSubscriber() local 99 DumpCurrentTime(startTime); in DumpDevicestatusSubscriber() 100 dprintf(fd, "Current time: %s \n", startTime.c_str()); in DumpDevicestatusSubscriber() 104 … appInfo->startTime.c_str(), appInfo->uid, appInfo->pid, GetStatusType(appInfo->type).c_str(), in DumpDevicestatusSubscriber() 117 std::string startTime; in DumpDevicestatusChanges() local 118 DumpCurrentTime(startTime); in DumpDevicestatusChanges() 119 dprintf(fd, "Current time: %s \n", startTime.c_str()); in DumpDevicestatusChanges() 131 record->startTime.c_str(), GetStatusType(record->data.type).c_str(), in DumpDevicestatusChanges() 140 std::string startTime; in DumpDevicestatusCurrentStatus() local 141 DumpCurrentTime(startTime); in DumpDevicestatusCurrentStatus() [all …]
|
/base/notification/common_event_service/tools/test/systemtest/cem/ |
D | common_event_command_publish_system_test.cpp | 156 struct tm startTime = {0}; variable 157 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); 166 seconds = OHOS::GetSecondsBetween(startTime, doingTime); 216 struct tm startTime = {0}; variable 217 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); 226 seconds = OHOS::GetSecondsBetween(startTime, doingTime); 276 struct tm startTime = {0}; variable 277 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); 286 seconds = OHOS::GetSecondsBetween(startTime, doingTime); 336 struct tm startTime = {0}; variable [all …]
|
/base/hiviewdfx/hiview/base/event_pool/test/unittest/common/ |
D | event_pool_test.cpp | 57 auto startTime = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); variable 58 printf("start time is %s\n", std::to_string(startTime).c_str()); 102 printf("all time is %s ms\n", std::to_string(end - startTime).c_str()); 104 ASSERT_LE(end - startTime, 10200); 117 auto startTime = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); variable 118 printf("start time is %s\n", std::to_string(startTime).c_str()); 162 printf("all time is %s ms\n", std::to_string(end - startTime).c_str()); 164 ASSERT_LE(end - startTime, 11200); 177 auto startTime = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); variable 178 printf("start time is %s\n", std::to_string(startTime).c_str()); [all …]
|
/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_publish_ordered_system_test/ |
D | common_event_services_publish_ordered_system_test.cpp | 161 struct tm startTime = {0}; in ProcessSubscriberTestCase3() local 162 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); in ProcessSubscriberTestCase3() 169 seconds = OHOS::GetSecondsBetween(startTime, doingTime); in ProcessSubscriberTestCase3() 192 struct tm startTime = {0}; in ProcessSubscriberTestCase5() local 193 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); in ProcessSubscriberTestCase5() 200 seconds = OHOS::GetSecondsBetween(startTime, doingTime); in ProcessSubscriberTestCase5() 222 struct tm startTime = {0}; in AsyncProcess() local 223 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); in AsyncProcess() 231 seconds = OHOS::GetSecondsBetween(startTime, doingTime); in AsyncProcess() 318 struct tm startTime = {0}; in ProcessSubscriberAnotherTestCase5() local [all …]
|
/base/notification/common_event_service/services/test/moduletest/common_event_services_publish_ordered_module_test/ |
D | common_event_services_publish_ordered_module_test.cpp | 170 struct tm startTime = {0}; in ProcessSubscriberTestCase3() local 171 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); in ProcessSubscriberTestCase3() 178 seconds = OHOS::GetSecondsBetween(startTime, doingTime); in ProcessSubscriberTestCase3() 203 struct tm startTime = {0}; in ProcessSubscriberTestCase5() local 204 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); in ProcessSubscriberTestCase5() 211 seconds = OHOS::GetSecondsBetween(startTime, doingTime); in ProcessSubscriberTestCase5() 234 struct tm startTime = {0}; in AsyncProcess() local 235 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); in AsyncProcess() 243 seconds = OHOS::GetSecondsBetween(startTime, doingTime); in AsyncProcess() 330 struct tm startTime = {0}; in ProcessSubscriberAnotherTestCase5() local [all …]
|
/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_system_test/ |
D | common_event_services_system_test.cpp | 679 struct tm startTime = {0}; variable 693 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); 699 seconds = OHOS::GetSecondsBetween(startTime, doingTime); 715 struct tm startTime = {0}; variable 731 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); 738 seconds = OHOS::GetSecondsBetween(startTime, doingTime); 754 struct tm startTime = {0}; variable 769 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); 776 seconds = OHOS::GetSecondsBetween(startTime, doingTime); 792 struct tm startTime = {0}; variable [all …]
|
/base/account/os_account/services/accountmgr/test/moduletest/os_account/ |
D | os_account_manager_service_subscribe_module_test.cpp | 117 struct tm startTime = {0}; variable 118 EXPECT_EQ(GetSystemCurrentTime(&startTime), true); 122 int64_t seconds = GetSecondsBetween(startTime, doingTime); 169 struct tm startTime = {0}; variable 170 EXPECT_EQ(GetSystemCurrentTime(&startTime), true); 174 int64_t seconds = GetSecondsBetween(startTime, doingTime);
|
/base/hiviewdfx/hilog/services/hilogd/ |
D | flow_control.cpp | 39 LogTimeStamp startTime; 55 LogTimeStamp start = it->second.startTime; in FlowCtrlDomain() 59 it->second.startTime = tsNow; in FlowCtrlDomain()
|
/base/startup/init/services/loopevent/task/ |
D | le_asynctask.c | 28 struct timespec startTime; in DoAsyncEvent_() local 31 clock_gettime(CLOCK_MONOTONIC, &(startTime)); in DoAsyncEvent_() 46 diff = (long long)((endTime.tv_sec - startTime.tv_sec) * MILLION_MICROSECOND); in DoAsyncEvent_() 47 if (endTime.tv_nsec > startTime.tv_nsec) { in DoAsyncEvent_() 48 diff += (endTime.tv_nsec - startTime.tv_nsec) / THOUSAND_MILLISECOND; // 1000 ms in DoAsyncEvent_() 50 diff -= (endTime.tv_nsec - startTime.tv_nsec) / THOUSAND_MILLISECOND; // 1000 ms in DoAsyncEvent_()
|
/base/sensors/miscdevice/services/miscdevice_service/include/ |
D | miscdevice_dump.h | 29 std::string startTime; member 45 void DumpCurrentTime(std::string &startTime);
|
/base/msdp/device_status/services/native/include/ |
D | devicestatus_dumper.h | 42 std::string startTime; member 51 std::string startTime; member 71 void DumpCurrentTime(std::string &startTime) const;
|
/base/notification/common_event_service/test/systemtest/common/ces/ces_check_service/ |
D | ces_check_service.cpp | 124 struct tm startTime = {0}; variable 125 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); 132 seconds = OHOS::GetSecondsBetween(startTime, doingTime);
|
/base/startup/init/services/param/liteos/ |
D | param_client.c | 88 time_t startTime; in SystemWaitParameter() local 92 (void)time(&startTime); in SystemWaitParameter() 107 diff = (uint32_t)difftime(finishTime, startTime); in SystemWaitParameter()
|
/base/account/os_account/services/accountmgr/test/moduletest/app_account/ |
D | app_account_manager_service_subscribe_module_test.cpp | 270 struct tm startTime = {0}; variable 271 EXPECT_EQ(GetSystemCurrentTime(&startTime), true); 280 seconds = GetSecondsBetween(startTime, doingTime); 487 struct tm startTime = {0}; variable 488 EXPECT_EQ(GetSystemCurrentTime(&startTime), true); 497 seconds = GetSecondsBetween(startTime, doingTime); 578 struct tm startTime = {0}; variable 579 EXPECT_EQ(GetSystemCurrentTime(&startTime), true); 588 seconds = GetSecondsBetween(startTime, doingTime); 666 struct tm startTime = {0}; variable [all …]
|
/base/hiviewdfx/hiview/plugins/usage_event_report/service/factory/ |
D | app_usage_event_factory.cpp | 99 int64_t startTime = today0Time > gapTime ? (today0Time - gapTime) : 0; in GetAppUsageInfosByUserId() local 103 startTime, endTime, userId); in GetAppUsageInfosByUserId() 110 startTime, endTime, pkgStats.size()); in GetAppUsageInfosByUserId() 111 std::string dateStr = TimeUtil::TimestampFormatToDate(startTime / MILLISEC_TO_SEC, DATE_FORMAT); in GetAppUsageInfosByUserId()
|
/base/startup/init/test/moduletest/ |
D | param_test_cmds.c | 337 static long long DiffLocalTime(struct timespec *startTime) in DiffLocalTime() argument 341 long long diff = (long long)((endTime.tv_sec - startTime->tv_sec) * 1000000); // 1000000 1000ms in DiffLocalTime() 342 if (endTime.tv_nsec > startTime->tv_nsec) { in DiffLocalTime() 343 diff += (endTime.tv_nsec - startTime->tv_nsec) / 1000; // 1000 1ms in DiffLocalTime() 345 diff -= (startTime->tv_nsec - endTime.tv_nsec) / 1000; // 1000 1ms in DiffLocalTime() 352 struct timespec startTime; in TestPerformance() local 354 clock_gettime(CLOCK_MONOTONIC, &(startTime)); in TestPerformance() 360 printf("CachedParameterGet time %lld us value %s \n", DiffLocalTime(&startTime), value); in TestPerformance()
|
/base/sensors/miscdevice/services/miscdevice_service/src/ |
D | miscdevice_dump.cpp | 145 record.startTime.c_str(), info.uid, info.pid, info.packageName.c_str(), in DumpMiscdeviceRecord() 149 record.startTime.c_str(), info.uid, info.pid, info.packageName.c_str(), in DumpMiscdeviceRecord() 155 void MiscdeviceDump::DumpCurrentTime(std::string &startTime) in DumpCurrentTime() argument 161 startTime.append(std::to_string(timeinfo->tm_year + BASE_YEAR)).append("-") in DumpCurrentTime() 181 DumpCurrentTime(record.startTime); in SaveVibrateRecord()
|
/base/security/device_auth/deps_adapter/os_adapter/interfaces/ |
D | hc_time.h | 32 int64_t HcGetIntervalTime(int64_t startTime);
|
/base/notification/common_event_service/services/test/moduletest/common_event_services_module_test/ |
D | common_event_services_module_test.cpp | 584 struct tm startTime = {0}; variable 585 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); 591 seconds = OHOS::GetSecondsBetween(startTime, doingTime); 628 struct tm startTime = {0}; variable 629 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); 635 seconds = OHOS::GetSecondsBetween(startTime, doingTime); 677 struct tm startTime = {0}; variable 678 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); 684 seconds = OHOS::GetSecondsBetween(startTime, doingTime); 726 struct tm startTime = {0}; variable [all …]
|
/base/theme/wallpaper_mgr/utils/dfx/hisysevent_adapter/ |
D | statistic_reporter.cpp | 45 int nDiff = stat.startTime - timeStat.startTime; in ReportUsageTimeStatistic() 120 int nDiff = curTime - stat.startTime; in InvokeUsageTime()
|
/base/account/os_account/services/accountmgr/src/osaccount/ |
D | os_account_interface.cpp | 88 struct tm startTime = {0}; in SendToAMSAccountStop() local 90 OHOS::GetSystemCurrentTime(&startTime); in SendToAMSAccountStop() 92 while (OHOS::GetSecondsBetween(startTime, nowTime) < Constants::TIME_WAIT_TIME_OUT && in SendToAMSAccountStop() 141 struct tm startTime = {0}; in SendToIDMAccountDelete() local 143 OHOS::GetSystemCurrentTime(&startTime); in SendToIDMAccountDelete() 145 while (OHOS::GetSecondsBetween(startTime, nowTime) < Constants::TIME_WAIT_TIME_OUT && in SendToIDMAccountDelete()
|
/base/hiviewdfx/hiview/adapter/utility/platform/ohos/ |
D | common_utils.cpp | 61 uint64_t startTime = TimeUtil::GetNanoTime(); in ExecCommand() local 68 uint64_t duration = TimeUtil::GetNanoTime() - startTime; in ExecCommand()
|