Searched refs:tspec (Results 1 – 5 of 5) sorted by relevance
/ohos5.0/foundation/multimodalinput/input/intention/scheduler/timer_manager/src/ |
H A D | timer_manager.cpp | 300 struct itimerspec tspec {}; in ArmTimer() struct 308 tspec.it_value.tv_sec = expire / TIME_CONVERSION; in ArmTimer() 309 tspec.it_value.tv_nsec = (expire % TIME_CONVERSION) * TIME_CONVERSION * TIME_CONVERSION; in ArmTimer() 312 if (timerfd_settime(timerFd_, 0, &tspec, NULL) != 0) { in ArmTimer()
|
/ohos5.0/base/msdp/device_status/intention/scheduler/timer_manager/src/ |
H A D | timer_manager.cpp | 300 struct itimerspec tspec {}; in ArmTimer() struct 308 tspec.it_value.tv_sec = expire / TIME_CONVERSION; in ArmTimer() 309 tspec.it_value.tv_nsec = (expire % TIME_CONVERSION) * TIME_CONVERSION * TIME_CONVERSION; in ArmTimer() 312 if (timerfd_settime(timerFd_, 0, &tspec, NULL) != 0) { in ArmTimer()
|
/ohos5.0/base/msdp/device_status/test/unittest/intention/common/src/ |
H A D | epoll_manager_test.cpp | 93 struct itimerspec tspec {}; in SetTimer() struct 94 tspec.it_interval = {1, 0}; // period timeout value = 1s in SetTimer() 95 tspec.it_value = {1, 0}; // initial timeout value = 1s0ns in SetTimer() 96 if (timerfd_settime(inotifyFd_, 0, &tspec, NULL) != 0) { in SetTimer()
|
/ohos5.0/docs/zh-cn/device-dev/kernel/ |
H A D | kernel-mini-appx-lib.md | 267 …t; | int clock_gettime(clockid_t id, struct timespec \*tspec); | 获取时钟的时间 |
|
/ohos5.0/docs/en/device-dev/kernel/ |
H A D | kernel-mini-appx-lib.md | 267 | \#include <time.h> | int clock_gettime(clockid_t id, struct timespec \*tspec); | Obtains th…
|