/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/time/ |
H A D | wheel.rs | 35 pub(crate) struct Clock { struct 54 node: Node<Clock>, argument 57 impl Clock { implementation 119 impl Default for Clock { implementation 121 Clock::new() in default() 125 unsafe impl Link for Clock { implementation 136 ClockEntry(NonNull<Clock>), 166 trigger: LinkedList<Clock>, 237 pub(crate) fn cancel(&mut self, clock_entry: NonNull<Clock>) { in cancel() argument 313 slots: [LinkedList<Clock>; SLOTS_NUM], [all …]
|
H A D | driver.rs | 23 use crate::time::Clock; 53 pub(crate) fn timer_register(&self, clock_entry: NonNull<Clock>) -> Result<u64, Error> { in timer_register() 58 pub(crate) fn timer_cancel(&self, clock_entry: NonNull<Clock>) { in timer_cancel() argument 65 mut clock_entry: NonNull<Clock>,
|
H A D | sleep.rs | 180 use crate::time::Clock; 187 timer: Clock, 200 let timer = Clock::new();
|
H A D | mod.rs | 26 pub(crate) use wheel::Clock;
|
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/common/include/ |
H A D | cgroup_sched_common.h | 29 using Clock = std::chrono::high_resolution_clock; variable 37 t1 = Clock::now(); in ChronoScope() 42 t1 = Clock::now(); in ChronoScope() 47 Clock::time_point t2 = Clock::now(); in ~ChronoScope() 63 Clock::time_point t1;
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/perf/ |
H A D | cpu_timer.cpp | 25 using Clock = system_clock; typedef 29 begin_ = Clock::now().time_since_epoch().count(); in Begin() 34 end_ = Clock::now().time_since_epoch().count(); in End() 39 …return (int64_t)(duration_cast<microseconds>(Clock::duration(end_) - Clock::duration(begin_)).coun… in GetMicroseconds()
|
/ohos5.0/docs/en/device-dev/driver/ |
H A D | driver-platform-clock-des.md | 1 # Clock chapter 9 The **Clock** module provides APIs for clock operations, including: 11 - Clock device management: enabling or disabling a clock device. 12 - Clock rate modulation: obtaining or setting the clock speed. 13 - Clock gating: enabling or disabling a clock. 22 …Clock** module uses the unified service mode for API adaptation. In this mode, a service is used a… 32 The following table describes the common APIs of the **Clock** module. For more information, see **… 34 **Table 1** APIs of the Clock driver 49 The following figure illustrates how to use the APIs provided by the **Clock** module. 51 **Figure 2** Process of using Clock APIs [all …]
|
H A D | driver-platform-clock-develop.md | 1 # Clock chapter 15 …Clock** module uses the unified service mode for API adaptation. In this mode, a service is used a… 17 The **Clock** module is divided into the following layers: 33 The **Clock** module provides chip-level clock management, including frequency division, frequency … 37 To enable applications to successfully operate the hardware by calling the **Clock** APIs, the syst… 97 | getRate | **device**: structure pointer to the clock controller at the core layer.| Clock rate ob… 112 The **Clock** module adaptation involves the following steps: 144 Clock driver entry example:
|
H A D | Readme-EN.md | 7 - [Clock](driver-platform-clock-develop.md) 26 - [Clock](driver-platform-clock-des.md)
|
/ohos5.0/foundation/resourceschedule/ffrt/interfaces/kits/cpp/ |
H A D | condition_variable.h | 49 template <typename Clock, typename Duration, typename Pred> 51 …std::unique_lock<mutex>& lk, const std::chrono::time_point<Clock, Duration>& tp, Pred&& pred) noex… in wait_until() argument 61 template <typename Clock, typename Duration> 62 …cv_status wait_until(std::unique_lock<mutex>& lk, const std::chrono::time_point<Clock, Duration>& … in wait_until() argument 64 return _wait_for(lk, tp - Clock::now()); in wait_until()
|
/ohos5.0/docs/zh-cn/device-dev/driver/ |
H A D | driver-platform-clock-des.md | 43 | DevHandle ClockOpen(uint32_t number); | 打开Clock设备 | NULL:获取失败,设备句柄:获取成功 | … 44 | int32_t ClockClose(DevHandle handle); | 关闭Clock设备 | 零:关闭成功,非零:关闭失败 |… 45 | int32_t ClockEnable(DevHandle handle); | 使能Clock | 零:使能成功,非零:使能失败 … 46 | int32_t ClockDisable(DevHandle handle); | 去使能Clock | 零:去使能成功,非零:去使能失败 | … 47 …e(DevHandle handle, uint32_t rate); | 设置时钟速率 | 零:设置时钟速率成功,非零:设置失败 | 失败请检查传入的rate对应的Clock是否支持 |
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/js-service-widget-ui/ |
H A D | js-service-widget-basic-clock.md | 21 …Clock的图片资源和样式设置,包括日间时段(6:00-18:00)和夜间时段(18:00-次日6:00)两套资源和样式设置。<br/>其中每套资源和样式包括表盘资源、时针指针资源、分针指针资源、… 22 …lean | true | 否 | 是否由Clock组件绘制表盘数字。<br/>该属性为true时,请留意clockconfig中digitRadiusRatio和digitSize…
|
/ohos5.0/base/notification/eventhandler/frameworks/eventhandler/src/ |
H A D | event_handler.cpp | 103 InnerEvent::TimePoint now = InnerEvent::Clock::now(); in SendEvent() 142 InnerEvent::TimePoint now = InnerEvent::Clock::now(); in PostTaskAtFront() 159 InnerEvent::TimePoint nowSys = InnerEvent::Clock::now(); in SendTimingEvent() 194 event->SetSendTime(InnerEvent::Clock::now()); in SendSyncEvent() 196 event->SetHandleTime(InnerEvent::Clock::now()); in SendSyncEvent() 411 InnerEvent::TimePoint nowEnd = InnerEvent::Clock::now(); in DistributeTimeAction() 432 InnerEvent::TimePoint endTime = InnerEvent::Clock::now(); in DistributeTimeoutHandler() 452 auto now = InnerEvent::Clock::now(); in DistributeEvent() 468 InnerEvent::TimePoint nowStart = InnerEvent::Clock::now(); in DistributeEvent() 504 auto now = InnerEvent::Clock::now(); in DistributeEvent()
|
H A D | event_queue_base.cpp | 363 auto now = InnerEvent::Clock::now(); in GetExpiredEventLocked() 645 historyEvents_[historyEventIndex_].triggerTime = InnerEvent::Clock::now(); in PushHistoryQueueBeforeDistribute() 648 currentRunningEvent_.triggerTime_ = InnerEvent::Clock::now(); in PushHistoryQueueBeforeDistribute() 660 historyEvents_[historyEventIndex_].completeTime = InnerEvent::Clock::now(); in PushHistoryQueueAfterDistribute() 737 auto now = InnerEvent::Clock::now(); in QueryPendingTaskInfo()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/executor/ |
H A D | driver_handle.rs | 24 use crate::time::{Clock, TimeHandle}; 91 pub(crate) fn timer_register(&self, clock_entry: NonNull<Clock>) -> Result<u64, Error> { 97 pub(crate) fn timer_cancel(&self, clock_entry: NonNull<Clock>) {
|
/ohos5.0/base/powermgr/power_manager/test/unittest/src/ |
H A D | power_mgr_notify_test.cpp | 44 using Clock = std::chrono::steady_clock; typedef 45 using TimePoint = std::chrono::time_point<Clock>; 72 receivedTime_ = Clock::now(); in OnReceive()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/perf/ |
H A D | performance_data_manager.cpp | 132 using Clock = std::chrono::system_clock; typedef 136 … return static_cast<IPerformanceDataManager::TimerHandle>(Clock::now().time_since_epoch().count()); in BeginTimer() 143 const auto dt = Clock::now().time_since_epoch() - Clock::duration(handle); in EndTimer()
|
/ohos5.0/base/notification/eventhandler/frameworks/eventhandler/test/unittest/ |
H A D | lib_event_handler_event_queue_test.cpp | 133 auto now = InnerEvent::Clock::now(); in DelayTest() 141 now = InnerEvent::Clock::now(); in DelayTest() 162 auto now = InnerEvent::Clock::now(); in InsertPriorityTest() 248 auto now = InnerEvent::Clock::now(); in InsertPriorityEvent() 260 auto now = InnerEvent::Clock::now(); in InsertPriorityEvent() 277 auto now = InnerEvent::Clock::now(); in InsertAllPriorityEvent() 289 auto now = InnerEvent::Clock::now(); in InsertAllPriorityEvent() 301 auto now = InnerEvent::Clock::now(); in InsertAllPriorityEvent() 2017 auto now = InnerEvent::Clock::now(); 2039 auto now = InnerEvent::Clock::now(); [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/platform/eventhandler_impl/ |
H A D | event_handler.cpp | 82 InnerEvent::TimePoint now = InnerEvent::Clock::now(); in SendEvent() 99 InnerEvent::TimePoint nowSys = InnerEvent::Clock::now(); in SendTimingEvent() 285 InnerEvent::TimePoint nowEnd = InnerEvent::Clock::now(); in DistributeTimeAction() 311 InnerEvent::TimePoint nowStart = InnerEvent::Clock::now(); in DistributeEvent()
|
/ohos5.0/foundation/resourceschedule/ffrt/interfaces/inner_api/cpp/ |
H A D | future.h | 50 template <typename Clock, typename Duration> 51 future_status wait_until(const std::chrono::time_point<Clock, Duration>& tp) const noexcept in wait_until() 186 template <typename Clock, typename Duration> 187 future_status wait_until(const std::chrono::time_point<Clock, Duration>& tp) const noexcept
|
/ohos5.0/base/notification/eventhandler/frameworks/eventhandler/include/ |
H A D | event_handler_utils.h | 38 InnerEvent::TimePoint now = InnerEvent::Clock::now(); in TimePointToTimeOut() 109 InnerEvent::TimePoint now = InnerEvent::Clock::now(); in GetTimeStamp()
|
/ohos5.0/base/notification/eventhandler/test/systemtest/ems_inner_event_system_test/ |
H A D | ems_inner_event_system_test.cpp | 138 InnerEvent::TimePoint now = InnerEvent::Clock::now(); 167 InnerEvent::TimePoint now = InnerEvent::Clock::time_point();
|
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/utils/ |
H A D | media_cached_buffer.h | 33 using Clock = std::chrono::steady_clock; variable 34 using TimePoint = Clock::time_point; 58 accessLength(0), totalReadSize(0), readTime(Clock::now())
|
/ohos5.0/base/notification/common_event_service/services/src/ |
H A D | system_time.cpp | 29 InnerEvent::TimePoint nowSys = InnerEvent::Clock::now(); in GetNowSysTime()
|
/ohos5.0/foundation/ability/ability_runtime/tools/aa/src/ |
H A D | system_time.cpp | 29 InnerEvent::TimePoint nowSys = InnerEvent::Clock::now(); in GetNowSysTime()
|