Searched refs:m_tBegin (Results 1 – 2 of 2) sorted by relevance
64 int ret = clock_gettime(CLOCK_MONOTONIC, &m_tBegin); in Start()67 memset(&m_tBegin, 0, sizeof(m_tBegin)); in Start()83 unsigned long elapsed = (tp.tv_sec - m_tBegin.tv_sec) * 1000000; in GetElapsed()84 return (m_tBegin.tv_nsec > tp.tv_nsec) in GetElapsed()85 ? elapsed - (m_tBegin.tv_nsec - tp.tv_nsec) / 1000 in GetElapsed()86 : elapsed + (tp.tv_nsec - m_tBegin.tv_nsec) / 1000; in GetElapsed()98 unsigned long elapsed = (tp.tv_sec - m_tBegin.tv_sec) * 1000000; in GetElapsedUpdate()99 elapsed = (m_tBegin.tv_nsec > tp.tv_nsec) in GetElapsedUpdate()100 ? elapsed - (m_tBegin.tv_nsec - tp.tv_nsec) / 1000 in GetElapsedUpdate()101 : elapsed + (tp.tv_nsec - m_tBegin.tv_nsec) / 1000; in GetElapsedUpdate()[all …]
76 timespec m_tBegin; variable