MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ count_call()

void MayaFlux::Yantra::Vision::VisionMatrix::count_call ( )
private

Definition at line 52 of file VisionMatrix.cpp.

53{
54 const auto now = std::chrono::steady_clock::now();
55 if (m_last_call) {
56 const double seconds = std::chrono::duration<double>(now - *m_last_call).count();
57 if (seconds > 0.0) {
58 const double rate = 1.0 / seconds;
59 m_rate = m_rate > 0.0 ? m_rate + 0.1 * (rate - m_rate) : rate;
60 }
61 }
62 m_last_call = now;
63}
float rate
std::optional< std::chrono::steady_clock::time_point > m_last_call

References m_last_call, m_rate, and rate.

Referenced by execute(), and extract().

+ Here is the caller graph for this function: