/base/sensors/sensor/services/src/ |
H A D | sensor_dump.cpp | 271 timespec time = { 0, 0 }; in DumpSensorData() local 272 clock_gettime(CLOCK_REALTIME, &time); in DumpSensorData() 273 struct tm *timeinfo = localtime(&(time.tv_sec)); in DumpSensorData() 275 dprintf(fd, " %2d (ts=%.9f, time=%02d:%02d:%02d.%03d) | data:%s", ++j, data.timestamp / 1e9, in DumpSensorData() 276 timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec, int32_t { (time.tv_nsec / MS_NS) }, in DumpSensorData() 290 dprintf(fd, "Current time: %02d:%02d:%02d.%03d\n", timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec, in DumpCurrentTime()
|
/base/update/updater/services/package/pkg_manager/ |
H A D | pkg_utils.cpp | 219 void ExtraTimeAndDate(time_t when, uint16_t &date, uint16_t &time) in GetFileSize() argument 235 time = static_cast<uint16_t>(static_cast<uint16_t>(nowTime.tm_hour) << TM_HOUR_BITS); in GetFileSize() 236 time |= static_cast<uint16_t>(static_cast<uint16_t>(nowTime.tm_min) << TM_MIN_BITS); in GetFileSize() 237 time |= static_cast<uint16_t>(static_cast<uint16_t>(nowTime.tm_sec) >> 1); in GetFileSize()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/recognizers/ |
H A D | sequenced_recognizer.cpp | 280 static_cast<int64_t>(item.second.time.time_since_epoch().count()) + beforeDuration); in SendTouchEventToNextRecognizer() 281 TimeStamp time(microseconds); in SendTouchEventToNextRecognizer() 282 item.second.time = time; in SendTouchEventToNextRecognizer()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/ |
H A D | layout_wrapper_node.cpp | 220 int64_t time = GetSysTimestamp(); in Layout() local 252 time = GetSysTimestamp() - time; in Layout() 254 AddNodeLayoutTime(time); in Layout()
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_video_ffi.cpp | 54 void NativeVideoController::SetCurrentTime(int32_t time, int32_t seekMode) in SetCurrentTime() argument 56 double value = (double)time; in SetCurrentTime() 163 auto res = json->GetValue("time")->GetInt(); in FfiOHOSAceFrameworkVideoOnSeeking() 177 auto res = json->GetValue("time")->GetInt(); in FfiOHOSAceFrameworkVideoOnSeeked() 191 auto res = json->GetValue("time")->GetInt(); in FfiOHOSAceFrameworkVideoOnUpdate() 250 void FfiOHOSAceFrameworkVideoControllerSetCurrentTime(int32_t time, int32_t seekMode, int64_t selfID) in FfiOHOSAceFrameworkVideoControllerSetCurrentTime() argument 254 self->SetCurrentTime(time, seekMode); in FfiOHOSAceFrameworkVideoControllerSetCurrentTime()
|
/foundation/arkui/ace_engine/test/unittest/bridge/common/utils/ |
H A D | utils_test.cpp | 365 double time = 0.0; in HWTEST_F() local 366 transformConvertor.Convert(key, value, time); in HWTEST_F() 368 transformConvertor.Convert(key, value, time); in HWTEST_F() 376 transformConvertor.InsertIdentityKeyframe(time); in HWTEST_F()
|
/foundation/multimedia/audio_framework/frameworks/cj/src/ |
H A D | multimedia_audio_capturer_impl.cpp | 89 uint64_t time = in GetAudioTime() local 90 static_cast<uint64_t>(timestamp.time.tv_nsec) + static_cast<uint64_t>(timestamp.time.tv_sec) * secToNanosecond; in GetAudioTime() 91 return static_cast<int64_t>(time); in GetAudioTime()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_render_spring_animation.cpp | 204 // meanwhile, align run time for both spring animations, prepare for status inheritance in InheritSpringAnimation() 260 void RSRenderSpringAnimation::OnInitialize(int64_t time) in OnInitialize() argument 264 RSRenderPropertyAnimation::OnInitialize(time); in OnInitialize() 277 uint64_t blendTime = (time - lastFrameTime) * animationFraction_.GetAnimationScale(); in OnInitialize() 307 RSRenderPropertyAnimation::OnInitialize(time); in OnInitialize()
|
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/ |
H A D | thumbnail_aging_helper.cpp | 92 int32_t ThumbnailAgingHelper::GetAgingDataCount(const int64_t &time, const bool &before, ThumbRdbOpt &opts, int &count) in GetAgingDataCount() argument 94 int err = GetLcdCountByTime(time, before, opts, count); in GetAgingDataCount() 199 int32_t ThumbnailAgingHelper::GetLcdCountByTime(const int64_t &time, const bool &before, ThumbRdbOpt &opts, in GetLcdCountByTime() argument 203 if (!ThumbnailUtils::QueryLcdCountByTime(time, before, opts, outLcdCount, err)) { in GetLcdCountByTime()
|
/foundation/resourceschedule/work_scheduler/services/native/src/ |
H A D | work_queue_manager.cpp | 209 void WorkQueueManager::SetTimeCycle(uint32_t time) in SetTimeCycle() argument 211 timeCycle_ = time; in SetTimeCycle() 221 void WorkQueueManager::SetTimeRetrigger(int32_t time) in SetTimeRetrigger() argument 223 g_timeRetrigger = time; in SetTimeRetrigger()
|
/foundation/communication/ipc/ipc/test/unittest/ipc/client/ |
H A D | IpcClientTest.cpp | 255 float time = (end.tv_sec - start.tv_sec) * 1000 + (end.tv_nsec - start.tv_nsec) / 1000000; // ms in HWTEST_F() local 256 RPC_LOG_INFO("############ sync time with 100 times = %f ms", time); in HWTEST_F() 280 float time = (end.tv_sec - start.tv_sec) * 1000 + (end.tv_nsec - start.tv_nsec) / 1000000; // ms in HWTEST_F() local 281 RPC_LOG_INFO("########### async time with 100 times = %f ms", time); in HWTEST_F()
|
/foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata/include/ |
H A D | executor_pool.h | 132 auto time = std::chrono::steady_clock::now() + interval; in Reset() 133 return std::pair{ task.interval != INVALID_INTERVAL, time }; in Reset() 205 auto time = std::chrono::steady_clock::now() + task.interval; in NextTimer() local 206 return { true, time }; in NextTimer()
|
/foundation/distributeddatamgr/preferences/frameworks/native/include/ |
H A D | executor_pool.h | 136 auto time = std::chrono::steady_clock::now() + interval; in Reset() 137 return std::pair{ true, time }; in Reset() 209 auto time = std::chrono::steady_clock::now() + task.interval; in NextTimer() local 210 return { true, time }; in NextTimer()
|
/foundation/distributedhardware/distributed_screen/services/common/test/unittest/decision_center/ |
H A D | screen_decision_center_test.cpp | 218 decision->sendFullTime_ = time(nullptr); in HWTEST_F() 259 decision->sendFullTime_ = time(nullptr) - ScreenDecisionCenter::FORCE_FULL_IMAGE_TIME_INTERAL - 1; in HWTEST_F() 266 decision->sendFullTime_ = time(nullptr); in HWTEST_F() 273 decision->sendFullTime_ = time(nullptr); in HWTEST_F()
|
/kernel/linux/linux-5.10/tools/testing/selftests/ptp/ |
H A D | testptp.c | 20 #include <sys/time.h> 23 #include <time.h> 122 " -e val read 'val' external time stamp events\n" in usage() 124 " -g get the ptp clock time\n" in usage() 127 " -k val measure the time offset between system and phc clock\n" in usage() 134 " 1 - external time stamp\n" in usage() 140 " -s set the ptp clock time from the system time\n" in usage() 141 " -S set the system time from the ptp clock time\ in usage() [all...] |
/kernel/linux/linux-5.10/tools/cgroup/ |
H A D | iocost_monitor.py | 14 import time namespace 241 now = time.time() 270 time.sleep(interval)
|
/kernel/linux/linux-5.10/tools/lib/perf/include/perf/ |
H A D | event.h | 54 __u64 time; member 82 __u64 time; member 265 __u64 time; member 331 __u64 time; member
|
/kernel/linux/linux-5.10/fs/hmdfs/ |
H A D | dentry.c | 18 void hmdfs_set_time(struct dentry *dentry, unsigned long time) in hmdfs_set_time() argument 23 d_info->time = time; in hmdfs_set_time() 31 return (unsigned long)d_info->time; in hmdfs_get_time()
|
/kernel/linux/linux-6.6/fs/hmdfs/ |
H A D | dentry.c | 18 void hmdfs_set_time(struct dentry *dentry, unsigned long time) in hmdfs_set_time() argument 23 d_info->time = time; in hmdfs_set_time() 31 return (unsigned long)d_info->time; in hmdfs_get_time()
|
/kernel/linux/linux-6.6/drivers/clocksource/ |
H A D | hyperv_timer.c | 314 * global stimer_message_sint value each time is conceptually in hv_stimer_legacy_init() 412 u64 cur_tsc, time; in read_hv_clock_tsc() local 420 if (!hv_read_tsc_page_tsc(tsc_page, &cur_tsc, &time)) in read_hv_clock_tsc() 421 time = read_hv_clock_msr(); in read_hv_clock_tsc() 423 return time; in read_hv_clock_tsc()
|
/kernel/linux/linux-6.6/tools/lib/perf/include/perf/ |
H A D | event.h | 64 __u64 time; member 95 __u64 time; member 354 __u64 time; member 428 __u64 time; member
|
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/x86_64/ |
H A D | xapic_ipi_test.c | 28 #include <time.h> 36 /* Default running time for the test */ 101 * each time around to minimize window between signaling the pending in halter_guest_code() 297 start_time = time(NULL); in do_migrations() 304 while ((int)(time(NULL) - start_time) < run_secs) { in do_migrations() 333 now = time(NULL); in do_migrations()
|
/kernel/liteos_a/testsuites/kernel/include/ |
H A D | osTest.h | 69 #include "time.h" 246 #define REALTIME(time) (UINT32)((UINT64)(0xffffffff - time) * 1000 / OS_SYS_CLOCK) /* accuracy:ms */ 247 #define HW_TMI(time) (UINT32)((UINT64)(0xffffffff - time) * 1000 / (OS_SYS_CLOCK / 1000000)) /* accuracy:ns */
|
/kernel/linux/linux-6.6/tools/cgroup/ |
H A D | iocost_monitor.py | 14 import time namespace 248 now = time.time() 277 time.sleep(interval)
|
/test/testfwk/xdevice/src/xdevice/_core/testkit/ |
H A D | kit.py | 23 import time namespace 315 time.sleep(1) 320 time.sleep(1) 322 time.sleep(1)
|