47 m_isValid = !! ::QueryPerformanceFrequency(&m_freq);
48 m_isValid &= !! ::QueryPerformanceCounter(&m_count);
49 ::QueryPerformanceCounter(&li);
50 m_apiCount = li.QuadPart - m_count.QuadPart;
51 ASSERT0( m_isValid,
"CPerformanceCount",
"PerformanceCount が使用できません." );
53 ::QueryPerformanceCounter(&m_count);
54 m_count.QuadPart += m_apiCount;
73 ::QueryPerformanceFrequency(&m_freq);
74 ::QueryPerformanceCounter(&m_count);
75 m_count.QuadPart += m_apiCount;
86 ::QueryPerformanceCounter(&c);
87 LONGLONG d = c.QuadPart - m_count.QuadPart;
88 return (d * 1000 * 1000 / m_freq.QuadPart);
99 ::QueryPerformanceCounter(&c);
100 LONGLONG d = c.QuadPart - m_count.QuadPart;
101 return (d * 1000 * 1000 * 1000 / m_freq.QuadPart);
112 return static_cast<DWORD
>(1000 * 1000 * 1000 / m_freq.QuadPart);
149 TRACE1(
" passed count = %.6f(ms)\n",
static_cast<double>(
GetPassedNanoCount() / 1000000.0) );
153 LARGE_INTEGER m_count;
154 LARGE_INTEGER m_freq;