/drivers/hdf_core/framework/tools/hdi-gen/test/hash_test/ |
H A D | hash_test.py | 12 import time
namespace 16 return int(round(time.time() * 1000))
|
/drivers/peripheral/camera/vdi_base/v4l2/src/stream_operator/ |
H A D | capture_request.cpp | 17 #include <sys/time.h> 186 uint64_t time = static_cast<uint64_t>(tv.tv_sec) * 1000 * 1000 + tv.tv_usec; // 1000:microsecond in GenerateTimeStamp() local 187 return time; in GenerateTimeStamp()
|
/drivers/peripheral/vibrator/test/fuzztest/vibratorplayhapticpattern_fuzzer/ |
H A D | vibratorplayhapticpattern_fuzzer.cpp | 62 pkg.time = params.g_pkgTime; in VibratorPlayHapticPatternTest() 68 hapticEvent.time = params.g_eventTime; in VibratorPlayHapticPatternTest() 75 curvePoint.time = params.g_pointTime; in VibratorPlayHapticPatternTest()
|
/foundation/ability/idl_tool/test/sa_test/ |
H A D | util.py | 21 import time namespace 25 return int(round(time.time() * 1000))
|
/foundation/ai/intelligent_voice_framework/utils/ |
H A D | time_util.cpp | 20 #include <sys/time.h> 66 log += "time elapse: " + ss.str() + "ms"; in PrintTimeElapse() 109 time(&rawTime); in GetCurrTime() 132 INTELL_VOICE_LOG_ERROR("get time of day error"); in GetCurrTimeUs() 152 INTELL_VOICE_LOG_ERROR("get file create time error"); in GetFormatTimeToSec() 164 currentTime = time(nullptr); in IsFormatTimeExpired() 167 INTELL_VOICE_LOG_ERROR("get sys time error"); in IsFormatTimeExpired()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/folder_stack/ |
H A D | folder_stack_pattern.h | 113 void SetLastTime(std::time_t time) in SetLastTime() argument 115 lastTime_ = time; in SetLastTime() 151 std::time_t lastTime_ = std::time(0);
|
/foundation/arkui/ace_engine/frameworks/core/event/ |
H A D | mouse_event.cpp | 27 hoverInfo.SetTimeStamp(event.time); in HandleHoverEvent() 43 hoverInfo.SetTimeStamp(event.time); in HandlePenHoverEvent() 64 hoverInfo.SetTimeStamp(event.time); in HandleAccessibilityHoverEvent()
|
/foundation/arkui/ace_engine/test/unittest/interfaces/ |
H A D | form_render_dispatcher_stub_test.cpp | 145 int64_t time = 0; in HWTEST_F() local 148 data.WriteInt64(time); in HWTEST_F() 151 EXPECT_TRUE(data.ReadInt64(time)); in HWTEST_F()
|
/foundation/multimedia/av_codec/test/unittest/video_test/video_test/capbilities/data_producer/data_producer_base/ |
H A D | data_producer_base.cpp | 92 auto time = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now()); in DumpInput() 97 std::to_string(time) + ".yuv"; in DumpInput() 99 inputFileName = "VideoDecoderIn_"s + std::to_string(time) + ".bin"; in DumpInput()
|
/foundation/multimedia/av_session/frameworks/js/napi/session/include/ |
H A D | napi_avsession_callback.h | 61 void OnFastForward(int64_t time) override; 62 void OnRewind(int64_t time) override; 63 void OnSeek(int64_t time) override;
|
/foundation/resourceschedule/background_task_mgr/services/transient_task/src/ |
H A D | pkg_delay_suspend_info.cpp | 162 int32_t time = static_cast<int32_t>(TimeProvider::GetCurrentTime()) - baseTime_ - exempted_quota; in GetModifiedTime() local 163 return (time < 0) ? 0 : time; in GetModifiedTime()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/ |
H A D | time_helper.cpp | 94 LOGE("[TimeHelper] save local time offset failed,err=%d", errCode); in Initialize() 149 Timestamp time = INVALID_TIMESTAMP; in GetMonotonicTime() local 150 int errCode = OS::GetMonotonicRelativeTimeInMicrosecond(time); in GetMonotonicTime() 154 return time; in GetMonotonicTime()
|
/foundation/distributeddatamgr/pasteboard/services/dfx/src/ |
H A D | calculate_time_consuming.cpp | 16 #include <sys/time.h> 81 int CalculateTimeConsuming::CalculateTime(uint64_t time) in CalculateTime() argument 84 uint64_t timeCosuming = time % FIVE_HUNDRED_MS; in CalculateTime()
|
/foundation/filemanagement/dfs_service/interfaces/kits/js/cloudfilesync/ |
H A D | file_sync_napi.cpp | 32 int64_t time = 0; member 53 int32_t ret = CloudSyncManager::GetInstance().GetSyncTime(arg->time, bundleName); in GetLastSyncTime() 65 return NVal::CreateInt64(env, cbArg->time); in GetLastSyncTime()
|
/foundation/communication/dhcp/services/dhcp_server/src/ |
H A D | common_util.cpp | 23 #include <sys/time.h> 24 #include <time.h> 39 (void)time(&curr); in DHCP_LOGTime()
|
/third_party/glslang/ |
H A D | build_info.py | 24 import time namespace 139 # clock time with environment variable SOURCE_DATE_EPOCH 141 timestamp = int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))
|
/third_party/backends/sanei/ |
H A D | sanei_auth.c | 52 #include <time.h> 71 srand(time(NULL)); \ 229 resource, getpid (), (long int) time (NULL), randombits ()); in sanei_authorize()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/util/ |
H A D | Timer.java | 94 abstract public void time(int repeat); in time() method in Timer.Loop 99 // The current strategy is to warm up once, then time it until we reach the timingPeriod (eg 5 seconds), increasing the iterations each time in timeIterations() 106 loop.time(1); in timeIterations() 113 loop.time(iterations); in timeIterations()
|
/third_party/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/ |
H A D | Timer.java | 91 abstract public void time(int repeat); in time() method in Timer.Loop 96 // The current strategy is to warm up once, then time it until we reach the timingPeriod (eg 5 seconds), increasing the iterations each time in timeIterations() 103 loop.time(1); in timeIterations() 110 loop.time(iterations); in timeIterations()
|
/third_party/mbedtls/library/ |
H A D | platform_util.c | 73 * any time and will not optimize out the call that could potentially perform 150 #include <time.h> 221 #include <time.h> 241 return time(NULL) * 1000; in mbedtls_ms_time()
|
/third_party/node/test/async-hooks/ |
H A D | test-callback-error.js | 39 console.time('end case 1'); 50 console.time('end case 2'); 61 console.time('end case 3');
|
/third_party/nghttp2/tests/ |
H A D | end_to_end.py | 16 import time namespace 36 time.sleep(1) 41 time.sleep(1)
|
/third_party/ltp/testcases/kernel/mem/mmapstress/ |
H A D | mmapstress05.c | 83 extern time_t time(time_t *); 119 (void)time(&t); in main() 199 (void)time(&t); in main()
|
H A D | mmapstress02.c | 38 extern time_t time(time_t *); 97 (void)time(&t); in main() 170 (void)time(&t); in main()
|
/third_party/ltp/testcases/kernel/syscalls/times/ |
H A D | times03.c | 12 * Start a process, and spend some CPU time by performing a spin in 14 * cpu time/sleep time, and other statistics. 24 #include <time.h> 63 * At least some CPU time must be used in system space. This is in generate_stime() 68 start_time = time(NULL); in generate_stime() 72 end_time = time(NULL); in generate_stime()
|