/third_party/python/Modules/_decimal/tests/ |
H A D | deccheck.py | 34 import time namespace 36 RANDSEED = int(time.time()) 1152 group.add_argument('--short', dest='time', action="store_const", const='short', default='short', help="short test (default)") 1153 group.add_argument('--medium', dest='time', action="store_const", const='medium', default='short', help="medium test (reasonable run time)") 1154 group.add_argument('--long', dest='time', action="store_const", const='long', default='short', help="long test (long run time)") 1155 group.add_argument('--all', dest='time', action="store_const", const='all', default='short', help="all tests (excessive run time)") [all...] |
/third_party/skia/bench/ |
H A D | nanobench.cpp | 115 static DEFINE_double(gpuMs, 5, "Target bench time in millseconds for GPU."); 134 static DEFINE_bool(keepAlive, false, "Print a message every so often so that we don't time out"); 284 static double time(int loops, Benchmark* bench, Target* target) { in time() function 375 bench_plus_overhead = time(1, bench, target); in setup_cpu_bench() 423 elapsed = time(loops, bench, target); in setup_gpu_bench() 439 time(loops, bench, target); in setup_gpu_bench() 886 // Nothing to time. in rawNext() 965 // Nothing to time. in rawNext() 994 // There are a few good reasons to only test on power of two sample sizes at this time: in rawNext() 1324 time(loop [all...] |
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | process_dumper.cpp | 33 #include <sys/time.h> 261 DFXLOGI("end time is zero, not set new alarm"); in SetProcessdumpTimeout() 274 DFXLOGI("processdump remain time%{public}" PRIu64 "ms", diffTime); in SetProcessdumpTimeout() 276 DFXLOGE("dump remain time is invalid, not set timer"); in SetProcessdumpTimeout() 372 ElapsedTime counter("ReadRequestAndCheck", 20); // 20 : limit cost time 20 ms in ReadRequestAndCheck() 446 jitRequest.time = OHOS::HiviewDFX::GetTimeMilliSeconds(); in UnwindWriteJit() 746 int32_t ProcessDumper::CreateFileForCrash(int32_t pid, uint64_t time) const in CreateFileForCrash() 755 std::string logPath = logFilePath + "/" + logFileType + "-" + std::to_string(pid) + "-" + std::to_string(time); in CreateFileForCrash() 775 faultloggerdRequest.time = request->timeStamp; in InitPrintThread()
|
/base/request/request/services/src/task/ |
H A D | download.rs | 273 use core::time; 409 ylong_runtime::time::sleep(time::Duration::from_secs(2)).await; in ut_download_resume_not_support_range() 534 ylong_runtime::time::sleep(time::Duration::from_secs(2)).await; in ut_download_range_resume_1()
|
/base/update/updater/services/ |
H A D | updater_main.cpp | 280 // First time enter updater, record retryCount in case of abnormal reset. in InstallUpdaterPackage() 485 std::string time; in PostUpdatePackages() local 499 time = DurationToString(upParams.installTime, i); in PostUpdatePackages() 501 writeBuffer += "|pass||install_time=" + time + "|\n"; in PostUpdatePackages() 503 time = DurationToString(upParams.installTime, upParams.pkgLocation); in PostUpdatePackages() 507 writeBuffer += "|" + buf + "|install_time=" + time + "|\n"; in PostUpdatePackages()
|
/third_party/node/deps/v8/src/base/platform/ |
H A D | platform-posix.cc | 20 #include <sys/time.h> 22 #include <time.h> 42 #include "src/base/platform/time.h" 163 // https://developer.apple.com/documentation/apple-silicon/porting-just-in-time-compilers-to-apple-silicon. in GetFlagsForMemoryPermission() 762 // POSIX date/time support. 780 double PosixTimezoneCache::DaylightSavingsOffset(double time) { in DaylightSavingsOffset() argument 781 if (std::isnan(time)) return std::numeric_limits<double>::quiet_NaN(); in DaylightSavingsOffset() 782 time_t tv = static_cast<time_t>(std::floor(time/msPerSecond)); in DaylightSavingsOffset()
|
/third_party/python/Lib/multiprocessing/ |
H A D | connection.py | 17 import time namespace 60 return time.monotonic() + timeout 63 return time.monotonic() > t 927 deadline = time.monotonic() + timeout 935 timeout = deadline - time.monotonic()
|
/third_party/python/Lib/asyncio/ |
H A D | windows_events.py | 15 import time namespace 898 start_time = time.monotonic() 901 if next_msg <= time.monotonic(): 903 self, time.monotonic() - start_time) 904 next_msg = time.monotonic() + msg_update
|
/third_party/python/Lib/test/ |
H A D | test_support.py | 12 import time namespace 464 t0 = time.monotonic() 465 deadline = time.monotonic() + support.SHORT_TIMEOUT 473 if time.monotonic() > deadline: 485 time.sleep(0.100)
|
H A D | test_int.py | 2 import time namespace 660 get_time = time.process_time 662 get_time = time.monotonic 703 get_time = time.process_time 705 get_time = time.monotonic
|
/third_party/python/Lib/test/test_email/ |
H A D | test_email.py | 6 import time namespace 1801 timetuple = time.localtime(now) 1803 tzsecs = time.timezone 1805 tzsecs = time.altzone 1811 container['Date'] = time.strftime( 1813 time.localtime(now)) + tzoffset 3030 now = time.time() 3032 time.gmtime(now)[:6]) 3035 now = time [all...] |
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/native_leak/ |
H A D | native_leak_detector.cpp | 172 time_t now = time(nullptr); in RemoveInvalidUserInfo() 200 int64_t now = time(nullptr); in UpdateProcessedPidsList() 327 time_t now = time(nullptr); in ExeNextStateProcess()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/ |
H A D | dfx_signal_handler.c | 33 #include <sys/time.h> 37 #include <time.h> 278 exception.time = (int64_t)(GetTimeMilliseconds()); in FillCrashExceptionAndReport()
|
/base/hiviewdfx/hicollie/frameworks/native/ |
H A D | xcollie_utils.cpp | 265 // 5: wait time, s in ParsePeerBinderPid() 338 std::string time = GetFormatDate(); in WriteStackToFd() local 344 path = realPath + "/" + eventName + "_" + time.c_str() + "_" + in WriteStackToFd() 370 time_t t = time(nullptr); in GetFormatDate()
|
/base/powermgr/battery_statistics/test/unittest/src/servicetest/ |
H A D | stats_service_core_test.cpp | 99 int64_t time = 100; in HWTEST_F() local 101 statsCore->UpdateStats(StatsUtils::STATS_TYPE_WIFI_SCAN, time, data); in HWTEST_F() 102 statsCore->UpdateStats(StatsUtils::STATS_TYPE_WAKELOCK_HOLD, time, data); in HWTEST_F()
|
/base/powermgr/power_manager/services/native/include/ |
H A D | power_state_machine.h | 46 // record the last time when get wakeup event from A side 48 // record the last time when calling func RefreshActivityInner 50 // record the last time when calling func WakeupDeviceInner 52 // record the last time when calling func SuspendDeviceInner 204 void SetDisplayOffTime(int64_t time, bool needUpdateSetting = true); 205 void SetSleepTime(int64_t time); 325 void AppendDumpInfo(std::string& result, std::string& reason, std::string& time);
|
/base/powermgr/battery_manager/services/zidl/src/ |
H A D | battery_srv_proxy.cpp | 275 int64_t time = INVALID_REMAINING_CHARGE_TIME_VALUE; in GetRemainingChargeTime() local 276 RETURN_IF_READ_PARCEL_FAILED_WITH_RET(reply, Int64, time, INVALID_REMAINING_CHARGE_TIME_VALUE); in GetRemainingChargeTime() 277 return time; in GetRemainingChargeTime()
|
/base/powermgr/battery_statistics/services/zidl/src/ |
H A D | battery_stats_proxy.cpp | 78 uint64_t time = StatsUtils::DEFAULT_VALUE;
in GetTotalTimeSecond() local 90 STATS_RETURN_IF_READ_PARCEL_FAILED_WITH_RET(COMP_FWK, reply, Uint64, time, StatsUtils::DEFAULT_VALUE);
in GetTotalTimeSecond() 91 return time;
in GetTotalTimeSecond()
|
/base/powermgr/power_manager/test/unittest/src/ |
H A D | power_mgr_service_native_test.cpp | 346 static_cast<int64_t>(time(nullptr)), WakeupDeviceType::WAKEUP_DEVICE_SWITCH, "PowerMgrServiceNative014"); in HWTEST_F() 398 static_cast<int64_t>(time(nullptr)), WakeupDeviceType::WAKEUP_DEVICE_SWITCH, "PowerMgrServiceNative015"); in HWTEST_F() 417 static_cast<int64_t>(time(nullptr)), WakeupDeviceType::WAKEUP_DEVICE_SWITCH, "PowerMgrServiceNative015"); in HWTEST_F()
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_test.cpp | 146 int64_t time = 10;
in HWTEST_F() local 149 rrc->SetPostTime(time);
in HWTEST_F() 150 EXPECT_EQ(rrc->GetPostTime(), time);
in HWTEST_F()
|
/base/request/request/services/src/manage/ |
H A D | mod.rs | 34 use std::time::Duration; 178 ylong_runtime::time::sleep(Duration::from_millis(500)).await; in ut_manager_task_state_and_reason() 184 ylong_runtime::time::sleep(Duration::from_secs(10)).await; in ut_manager_task_state_and_reason()
|
/base/security/certificate_framework/frameworks/adapter/v1.0/src/ |
H A D | x509_crl_entry_openssl.c | 159 const ASN1_TIME *time = X509_REVOKED_get0_revocationDate(rev); in GetRevocationDate() local 160 if (time == NULL) { in GetRevocationDate() 165 const char *revTime = (const char *)(time->data); in GetRevocationDate()
|
/base/update/updater/interfaces/kits/packages/ |
H A D | package.cpp | 50 if (pkgInfoExt->time != nullptr) {
in GetUpgradePkgInfo() 51 upgradePackageInfo->time = pkgInfoExt->time;
in GetUpgradePkgInfo()
|
/third_party/ffmpeg/tools/ |
H A D | sidxindex.c | 216 static void write_time(FILE *out, int64_t time, int decimals, enum AVRounding round) in write_time() argument 218 int seconds = time / AV_TIME_BASE; in write_time() 219 int fractions = time % AV_TIME_BASE; in write_time()
|
/third_party/ffmpeg/tests/fate/ |
H A D | hlsenc.mak | 73 FATE_HLSENC-$(call ALLYES, HLS_DEMUXER MPEGTS_MUXER MPEGTS_DEMUXER AEVALSRC_FILTER LAVFI_INDEV MP2FIXED_ENCODER) += fate-hls-init-time 74 fate-hls-init-time: tests/data/hls_init_time.m3u8 75 fate-hls-init-time: CMD = framecrc -auto_conversion_filters -flags +bitexact -i $(TARGET_PATH)/tests/data/hls_init_time.m3u8 -vf setpts=N*23
|