| 50 | } |
| 51 | |
| 52 | float32 b2Timer::GetMilliseconds() const |
| 53 | { |
| 54 | LARGE_INTEGER largeInteger; |
| 55 | QueryPerformanceCounter(&largeInteger); |
| 56 | float64 count = float64(largeInteger.QuadPart); |
| 57 | float32 ms = float32(s_invFrequency * (count - m_start)); |
| 58 | return ms; |
| 59 | } |
| 60 | |
| 61 | #elif defined(__linux__) || defined (__APPLE__) |
| 62 |