Home
last modified time | relevance | path

Searched refs:time1 (Results 1 – 7 of 7) sorted by relevance

/base/time/time_service/services/time/test/unittest/src/
Dtime_service_test.cpp234 auto time1 = TimeServiceClient::GetInstance()->GetWallTimeMs(); variable
235 EXPECT_TRUE(time1 != -1);
237 EXPECT_TRUE(time2 >= time1);
247 auto time1 = TimeServiceClient::GetInstance()->GetWallTimeNs(); variable
248 EXPECT_TRUE(time1 != -1);
250 EXPECT_TRUE(time2 >= time1);
260 auto time1 = TimeServiceClient::GetInstance()->GetBootTimeNs(); variable
261 EXPECT_TRUE(time1 != -1);
263 EXPECT_TRUE(time2 >= time1);
273 auto time1 = TimeServiceClient::GetInstance()->GetMonotonicTimeMs(); variable
[all …]
/base/startup/init/services/modules/bootchart/
Dbootchart.c38 struct timespec time1 = {0}; in GetJiffies() local
39 clock_gettime(CLOCK_MONOTONIC, &time1); in GetJiffies()
40 long long jiffies1 = (long long)time1.tv_nsec / NANO_PRE_JIFFY; in GetJiffies()
41 …long long jiffies2 = (long long)time1.tv_sec * (1000000000 / NANO_PRE_JIFFY); // 1000000000 to nsec in GetJiffies()
/base/hiviewdfx/hiview/adapter/utility/test/unittest/common/
Dadapter_utility_ohos_test.cpp159 auto time1 = TimeUtil::Get0ClockStampMs(); variable
161 ASSERT_GE(time1, 0);
/base/hiviewdfx/hiview/base/event_pool/test/unittest/common/
Devent_pool_test.cpp273 auto time1 = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); variable
274 printf("start finsh time is %s\n", std::to_string(time1).c_str());
/base/customization/enterprise_device_management/services/edm/src/
Dadmin_manager.cpp502 double time1 = clock(); in WriteJsonAdmin() local
517 if (time1 != 0 && time2 != 0) { in WriteJsonAdmin()
518 EDMLOGD("WriteJsonAdmin spend time %{public}f", (time2 - time1) / CLOCKS_PER_SEC); in WriteJsonAdmin()
Dpolicy_manager.cpp188 double time1 = clock(); in SavePolicy() local
203 EDMLOGI("SavePolicy spend time %{public}f, %{public}f", (time2 - time1) / CLOCKS_PER_SEC, in SavePolicy()
/base/hiviewdfx/hitrace/test/unittest/hitrace_meter/
Dhitrace_ndk_test.cpp255 bool GetTimeDuration(int64_t time1, int64_t time2, int64_t diffRange) in GetTimeDuration() argument
257 int64_t duration = time2 - time1; in GetTimeDuration()