Lines Matching refs:m_tBegin
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()
103 m_tBegin = tp; in GetElapsedUpdate()