Home
last modified time | relevance | path

Searched refs:tspec (Results 1 - 2 of 2) sorted by relevance

/base/msdp/device_status/test/unittest/intention/common/src/
H A Depoll_manager_test.cpp92 struct itimerspec tspec {}; in SetTimer() struct
93 tspec.it_interval = {1, 0}; // period timeout value = 1s in SetTimer()
94 tspec.it_value = {1, 0}; // initial timeout value = 1s0ns in SetTimer()
95 if (timerfd_settime(inotifyFd_, 0, &tspec, NULL) != 0) { in SetTimer()
/base/msdp/device_status/intention/scheduler/timer_manager/src/
H A Dtimer_manager.cpp300 struct itimerspec tspec {};
308 tspec.it_value.tv_sec = expire / TIME_CONVERSION;
309 tspec.it_value.tv_nsec = (expire % TIME_CONVERSION) * TIME_CONVERSION * TIME_CONVERSION;
312 if (timerfd_settime(timerFd_, 0, &tspec, NULL) != 0) {

Completed in 2 milliseconds