Home
last modified time | relevance | path

Searched refs:nextSampleTime (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/sensors/common/default/2.X/
DSensor.cpp119 int64_t nextSampleTime = mLastSampleTimeNs + mSamplingPeriodNs; in run() local
121 if (now >= nextSampleTime) { in run()
123 nextSampleTime = mLastSampleTimeNs + mSamplingPeriodNs; in run()
127 mWaitCV.wait_for(runLock, std::chrono::nanoseconds(nextSampleTime - now)); in run()
/hardware/interfaces/sensors/common/default/2.X/multihal/tests/fake_subhal/
DSensor.cpp130 int64_t nextSampleTime = mLastSampleTimeNs + mSamplingPeriodNs; in run() local
132 if (now >= nextSampleTime) { in run()
134 nextSampleTime = mLastSampleTimeNs + mSamplingPeriodNs; in run()
138 mWaitCV.wait_for(runLock, std::chrono::nanoseconds(nextSampleTime - now)); in run()