Home
last modified time | relevance | path

Searched refs:curTime (Results 1 - 25 of 68) sorted by relevance

123

/third_party/libdrm/tests/ttmtest/src/
H A Dttmtest.c172 unsigned long curTime, oldTime; in benchmarkBuffer() local
185 curTime = fastrdtsc(); in benchmarkBuffer()
186 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer()
191 curTime = fastrdtsc(); in benchmarkBuffer()
192 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer()
196 curTime = fastrdtsc(); in benchmarkBuffer()
197 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer()
201 curTime = fastrdtsc(); in benchmarkBuffer()
202 *ticks++ = time_diff(oldTime, curTime); in benchmarkBuffer()
206 curTime in benchmarkBuffer()
[all...]
/third_party/skia/third_party/externals/dawn/src/utils/
H A DWindowsTimer.cpp29 LARGE_INTEGER curTime; variable
30 QueryPerformanceCounter(&curTime); variable
31 mStartTime = curTime.QuadPart;
40 LARGE_INTEGER curTime; variable
41 QueryPerformanceCounter(&curTime); variable
42 mStopTime = curTime.QuadPart;
50 LARGE_INTEGER curTime; variable
51 QueryPerformanceCounter(&curTime); variable
52 endTime = curTime.QuadPart;
61 LARGE_INTEGER curTime; variable
62 QueryPerformanceCounter(&curTime); global() variable
[all...]
/base/hiviewdfx/hidumper/frameworks/native/
H A Dcommon.h37 struct tm curTime = {0}; \
38 if (localtime_r(&tp.tv_sec, &curTime) != nullptr) { \
39 fprintf(stdout, "[%04d%02d%02d %02d:%02d:%02d]", curTime.tm_year + 1900, 1 + curTime.tm_mon, \
40 curTime.tm_mday, curTime.tm_hour, curTime.tm_min, curTime.tm_sec); \
/base/security/huks/frameworks/huks_standard/main/os_dependency/posix/
H A Dhks_util.c26 struct timespec curTime; in HksElapsedRealTime() local
27 int32_t ret = clock_gettime(CLOCK_MONOTONIC, &curTime); in HksElapsedRealTime()
32 if ((curTime.tv_sec >= (time_t)((UINT64_MAX - S_TO_MS) / S_TO_MS)) || (curTime.tv_nsec / MS_TO_NS >= S_TO_MS)) { in HksElapsedRealTime()
36 *timestampMs = (uint64_t)(curTime.tv_sec * S_TO_MS + curTime.tv_nsec / MS_TO_NS); in HksElapsedRealTime()
/base/notification/common_event_service/services/test/unittest/
H A Dcommon_event_publish_system_event_test.cpp113 struct tm curTime {0}; in HWTEST_F() struct
116 data, publishInfo, nullptr, curTime, PID, SYSTEM_APP_UID, tokenID, UNDEFINED_USER, "bundlename"); in HWTEST_F()
143 struct tm curTime {0}; in HWTEST_F() struct
146 data, publishInfo, nullptr, curTime, PID, NON_SYSTEM_APP_UID, tokenID, UNDEFINED_USER, "bundlename"); in HWTEST_F()
174 struct tm curTime{0}; in HWTEST_F() struct
177 subscribeInfo, commonEventListenerPtr, curTime, PID, SYSTEM_APP_UID, tokenID, "bundlename")); in HWTEST_F()
195 data, publishInfo, nullptr, curTime, PID, SYSTEM_APP_UID, tokenID, UNDEFINED_USER, "bundlename"); in HWTEST_F()
225 struct tm curTime{0}; in HWTEST_F() struct
228 subscribeInfo, commonEventListenerPtr, curTime, PID, SYSTEM_APP_UID, tokenID, "bundlename")); in HWTEST_F()
246 data, publishInfo, nullptr, curTime, PI in HWTEST_F()
[all...]
H A Dcommon_event_publish_permission_event_unit_test.cpp111 struct tm curTime {0}; in HWTEST_F() struct
121 inner.SubscribeCommonEvent(subscribeInfo, listener, curTime, PID, SYSTEM_UID, tokenID, "hello"); in HWTEST_F()
134 data, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in HWTEST_F()
153 struct tm curTime {0}; in HWTEST_F() struct
163 inner.SubscribeCommonEvent(subscribeInfo, listener, curTime, PID, SYSTEM_UID, tokenID, "hello"); in HWTEST_F()
177 data, publishInfo, listener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in HWTEST_F()
196 struct tm curTime {0}; in HWTEST_F() struct
206 inner.SubscribeCommonEvent(subscribeInfo, listener, curTime, PID, SYSTEM_UID, tokenID, "hello"); in HWTEST_F()
220 data, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in HWTEST_F()
239 struct tm curTime { in HWTEST_F() struct
658 struct tm curTime {0}; HWTEST_F() struct
989 struct tm curTime { HWTEST_F() struct
1034 struct tm curTime { HWTEST_F() struct
1079 struct tm curTime { HWTEST_F() struct
1124 struct tm curTime { HWTEST_F() struct
1169 struct tm curTime { HWTEST_F() struct
1214 struct tm curTime { HWTEST_F() struct
1259 struct tm curTime { HWTEST_F() struct
1304 struct tm curTime { HWTEST_F() struct
1349 struct tm curTime { HWTEST_F() struct
1394 struct tm curTime { HWTEST_F() struct
[all...]
H A Dcommon_event_freeze_unit_test.cpp93 struct tm curTime {0}; in HWTEST_F() struct
97 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo_); in HWTEST_F()
125 struct tm curTime {0}; in HWTEST_F() struct
129 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo_); in HWTEST_F()
157 struct tm curTime {0}; in HWTEST_F() struct
161 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo_); in HWTEST_F()
207 struct tm curTime {0}; in HWTEST_F() struct
211 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo_); in HWTEST_F()
430 struct tm curTime {0}; in HWTEST_F() struct
434 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo in HWTEST_F()
460 struct tm curTime {0}; HWTEST_F() struct
492 struct tm curTime {0}; HWTEST_F() struct
540 struct tm curTime {0}; HWTEST_F() struct
[all...]
H A Dcommon_event_publish_ordered_event_unit_test.cpp154 struct tm curTime { in HWTEST_F() struct
159 data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundlename"); in HWTEST_F()
202 struct tm curTime { in HWTEST_F() struct
208 data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundlename"); in HWTEST_F()
593 struct tm curTime { in HWTEST_F() struct
599 data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundlename"); in HWTEST_F()
650 struct tm curTime { in HWTEST_F() struct
656 data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundlename"); in HWTEST_F()
707 struct tm curTime { in HWTEST_F() struct
713 data, publishInfo, commonEventListener, curTime, PI in HWTEST_F()
764 struct tm curTime { HWTEST_F() struct
[all...]
H A Dcommon_event_subscribe_unit_test.cpp640 struct tm curTime {0}; in HWTEST_F() struct
646 subscribeInfo, commonEventListenerPtr, curTime, pid, uid, tokenID, "")); in HWTEST_F()
668 struct tm curTime {0}; in HWTEST_F() struct
674 subscribeInfo, commonEventListenerPtr, curTime, pid, uid, tokenID, "")); in HWTEST_F()
693 struct tm curTime {0}; in HWTEST_F() struct
698 EXPECT_FALSE(innerCommonEventManager.SubscribeCommonEvent(subscribeInfo, sp, curTime, pid, uid, tokenID, "")); in HWTEST_F()
723 struct tm curTime {0}; in HWTEST_F() struct
730 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo); in HWTEST_F()
756 struct tm curTime {0}; in HWTEST_F() struct
763 commonEventSubscriberManager.InsertSubscriber(nullptr, commonEventListenerPtr, curTime, eventRecordInf in HWTEST_F()
787 struct tm curTime {0}; HWTEST_F() struct
822 struct tm curTime {0}; HWTEST_F() struct
[all...]
H A Dcommon_event_dump_test.cpp560 struct tm curTime {0}; in SubscribeDoubleEvent() struct
563 subscribeInfo, listener->AsObject(), curTime, PID, SYSTEM_UID, tokenID, "hello"); in SubscribeDoubleEvent()
595 struct tm curTime {0}; in PublishUnorderedEvent() struct
598 eventData, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in PublishUnorderedEvent()
630 struct tm curTime {0}; in PublishStickyEvent() struct
633 eventData, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in PublishStickyEvent()
663 struct tm curTime {0}; in PublishStickyEvent() struct
666 eventData, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in PublishStickyEvent()
769 struct tm curTime {0}; in HWTEST_F() struct
775 subscribeInfo, listener->AsObject(), curTime, PI in HWTEST_F()
803 struct tm curTime {0}; HWTEST_F() struct
836 struct tm curTime {0}; HWTEST_F() struct
868 struct tm curTime {0}; HWTEST_F() struct
899 struct tm curTime {0}; HWTEST_F() struct
930 struct tm curTime {0}; HWTEST_F() struct
1094 struct tm curTime {0}; HWTEST_F() struct
1127 struct tm curTime {0}; HWTEST_F() struct
[all...]
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core_dependency/src/
H A Dhks_core_hal_api_test.cpp62 uint64_t curTime = 0; in HWTEST_F() local
63 int32_t ret = HksElapsedRealTime(&curTime); in HWTEST_F()
65 EXPECT_EQ(curTime > 0, true) << "HksElapsedRealTime failed, curTime = " << curTime; in HWTEST_F()
/third_party/vk-gl-cts/framework/qphelper/
H A DqpWatchDog.c75 deUint64 curTime = deGetMicroseconds(); in watchDogThreadFunc() local
76 int totalSecondsPassed = (int)((curTime - dog->resetTime) / 1000000ull); in watchDogThreadFunc()
77 int secondsSinceLastTouch = (int)((curTime - dog->lastTouchTime) / 1000000ull); in watchDogThreadFunc()
130 deUint64 curTime = deGetMicroseconds(); in qpWatchDog_reset() local
135 dog->resetTime = curTime; in qpWatchDog_reset()
136 dog->lastTouchTime = curTime; in qpWatchDog_reset()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
H A Dpermission_grant_event.cpp30 struct timespec curTime; in GetRealTimeStamp() local
31 if (clock_gettime(CLOCK_MONOTONIC, &curTime) != 0) { in GetRealTimeStamp()
35 return curTime.tv_sec * MS_PER_S + curTime.tv_nsec / NS_PER_MS; in GetRealTimeStamp()
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/
H A Ddfx_processdump_test.cpp155 auto curTime = GetTimeMilliSeconds(); in HWTEST_F() local
159 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); in HWTEST_F()
174 auto curTime = GetTimeMilliSeconds(); in HWTEST_F() local
178 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); in HWTEST_F()
193 auto curTime = GetTimeMilliSeconds(); in HWTEST_F() local
197 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); in HWTEST_F()
212 auto curTime = GetTimeMilliSeconds(); in HWTEST_F() local
216 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); in HWTEST_F()
231 auto curTime = GetTimeMilliSeconds(); in HWTEST_F() local
235 ASSERT_EQ(std::to_string(curTime) in HWTEST_F()
251 auto curTime = GetTimeMilliSeconds(); HWTEST_F() local
270 auto curTime = GetTimeMilliSeconds(); HWTEST_F() local
289 auto curTime = GetTimeMilliSeconds(); HWTEST_F() local
[all...]
/test/xts/device_attest_lite/services/core/network/
H A Dattest_channel.c85 mbedtls_x509_time curTime = {0}; in VerifyCrtTime() local
87 curTime.year = ATTEST_TIME_DIFF_YEAR_1900 + theNowTm->tm_year; in VerifyCrtTime()
89 curTime.mon = ATTEST_TIME_DIFF_MONTH_ONE + theNowTm->tm_mon; in VerifyCrtTime()
91 curTime.day = theNowTm->tm_mday; in VerifyCrtTime()
92 curTime.hour = theNowTm->tm_hour; in VerifyCrtTime()
93 curTime.min = theNowTm->tm_min; in VerifyCrtTime()
94 curTime.sec = theNowTm->tm_sec; in VerifyCrtTime()
97 int32_t ret = X509CheckTime(&curTime, &crt->valid_to); in VerifyCrtTime()
104 ret = X509CheckTime(&crt->valid_from, &curTime); in VerifyCrtTime()
/third_party/vk-gl-cts/execserver/
H A DxsExecutionServer.cpp249 deUint64 curTime = deGetMicroseconds(); in processSession() local
251 lastIoTime = curTime; in processSession()
252 else if (curTime-lastIoTime > SERVER_IDLE_THRESHOLD*1000) in processSession()
312 deUint64 curTime = deGetMicroseconds(); in initKeepAlives() local
313 m_lastKeepAliveSent = curTime; in initKeepAlives()
314 m_lastKeepAliveReceived = curTime; in initKeepAlives()
324 deUint64 curTime = deGetMicroseconds(); in pollKeepAlives() local
327 if (curTime - m_lastKeepAliveReceived > KEEPALIVE_TIMEOUT*1000) in pollKeepAlives()
331 if (curTime - m_lastKeepAliveSent > KEEPALIVE_SEND_INTERVAL*1000 && in pollKeepAlives()
/base/hiviewdfx/hilog_lite/frameworks/mini/
H A Dhiview_log_limit.c65 uint16 curTime = (uint16)(HIVIEW_GetCurrentTime() / MS_PER_SECOND); in LogIsLimited() local
85 if ((curTime < baseTime) || ((curTime - baseTime) >= LOG_LIMIT_CHECK_DURATION)) { in LogIsLimited()
86 pLimitRule->baseTime = curTime; in LogIsLimited()
/third_party/skia/samplecode/
H A DSampleCusp.cpp29 SkMSec curTime; variable
36 SkScalar t = (curTime % speed) / SkIntToFloat(speed); in cusp()
56 SkScalar linear = (curTime % speed) / SkIntToFloat(speed); // 0 to 1 in linearToLoop()
163 std::string timeStr = std::to_string((float) (curTime - start) / 1000.f);
168 curTime = TimeUtils::NanosToMSec(nanos);
170 start = curTime;
/third_party/vk-gl-cts/execserver/tools/
H A DxsTest.cpp730 int curTime = 0; in runClient() local
737 curTime = clock.getMilliseconds(); in runClient()
739 while (curTime < testTime) in runClient()
743 if (curTime-lastSendTime > sendInterval) in runClient()
745 printf(" %d ms: sending keepalive\n", curTime); in runClient()
747 curTime = clock.getMilliseconds(); in runClient()
748 lastSendTime = curTime; in runClient()
755 printf(" %d ms: waiting for keepalive\n", curTime); in runClient()
762 printf(" %d ms: got keepalive\n", curTime); in runClient()
771 curTime in runClient() member in xs::KeepAliveTest
[all...]
/base/sensors/medical_sensor/utils/src/
H A Ddmd_report.cpp85 int64_t curTime = GetSecondsSince1970ToNow(); in ReportException() local
86 if ((curTime - eventIt->second) > SECONDS_HALF_HOUR) { in ReportException()
91 eventMap_[eventId] = curTime; in ReportException()
/base/notification/common_event_service/frameworks/native/test/unittest/
H A Dcommon_event_subscribe_test.cpp308 struct tm curTime {0}; in HWTEST_F() struct
311 EXPECT_EQ(false, innerCommonEventManager->SubscribeCommonEvent(subscribeInfo, sp, curTime, 0, 0, tokenID, "")); in HWTEST_F()
334 struct tm curTime {0}; in HWTEST_F() struct
341 nullptr, commonEventListenerPtr, curTime, eventRecordInfo); in HWTEST_F()
364 struct tm curTime {0}; in HWTEST_F() struct
371 commonEventSubscribeInfo, nullptr, curTime, eventRecordInfo); in HWTEST_F()
397 struct tm curTime {0}; in HWTEST_F() struct
404 commonEventSubscribeInfo, nullptr, curTime, eventRecordInfo); in HWTEST_F()
/third_party/skia/third_party/externals/angle2/src/common/
H A Dsystem_utils_win.cpp80 LARGE_INTEGER curTime; in GetCurrentSystemTime() local
81 QueryPerformanceCounter(&curTime); in GetCurrentSystemTime()
83 return static_cast<double>(curTime.QuadPart) / frequency.QuadPart; in GetCurrentSystemTime()
/base/powermgr/battery_manager/services/native/src/
H A Dbattery_dump.cpp49 timespec curTime = { 0, 0 }; in DumpCurrentTime() local
50 clock_gettime(CLOCK_REALTIME, &curTime); in DumpCurrentTime()
51 struct tm *timeinfo = localtime(&(curTime.tv_sec)); in DumpCurrentTime()
59 int32_t { (curTime.tv_nsec / MS_NS) }); in DumpCurrentTime()
/base/sensors/miscdevice/services/miscdevice_service/src/
H A Dmiscdevice_dump.cpp169 timespec curTime; in DumpCurrentTime() local
170 clock_gettime(CLOCK_REALTIME, &curTime); in DumpCurrentTime()
171 struct tm *timeinfo = localtime(&(curTime.tv_sec)); in DumpCurrentTime()
177 .append(std::to_string(curTime.tv_nsec / (CONVERSION_RATE * CONVERSION_RATE))); in DumpCurrentTime()
/base/security/huks/services/huks_standard/huks_service/main/core/src/
H A Dhks_session_manager.c125 uint64_t curTime = 0; in DeleteFirstTimeOutBatchOperation() local
126 int32_t ret = HksElapsedRealTime(&curTime); in DeleteFirstTimeOutBatchOperation()
131 if (operation->batchOperationTimestamp >= curTime) { in DeleteFirstTimeOutBatchOperation()
266 uint64_t curTime = 0; in HksAddBatchTimeToOperation() local
267 int32_t ret = HksElapsedRealTime(&curTime); in HksAddBatchTimeToOperation()
272 operation->batchOperationTimestamp = curTime + DEFAULT_BATCH_TIME_OUT * S_TO_MS; in HksAddBatchTimeToOperation()
284 operation->batchOperationTimestamp = curTime + (uint64_t)paramSet->params[i].uint32Param * S_TO_MS; in HksAddBatchTimeToOperation()

Completed in 19 milliseconds

123