0.2.0-dev Download ZIP
23 lines ·578 B Raw
| 1 | // Jolt Physics Library (https://github.com/jrouwe/JoltPhysics) |
| 2 | // SPDX-FileCopyrightText: 2021 Jorrit Rouwe |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | |
| 5 | #include <Jolt/Jolt.h> |
| 6 | |
| 7 | #include <Jolt/Core/TickCounter.h> |
| 8 | #include <Jolt/Core/IncludeWindows.h> |
| 9 | |
| 10 | JPH_NAMESPACE_BEGIN |
| 11 | |
| 12 | #if defined(JPH_PLATFORM_WINDOWS_UWP) || (defined(JPH_PLATFORM_WINDOWS) && defined(JPH_CPU_ARM)) |
| 13 | |
| 14 | uint64 GetProcessorTickCount() |
| 15 | { |
| 16 | LARGE_INTEGER count; |
| 17 | QueryPerformanceCounter(&count); |
| 18 | return uint64(count.QuadPart); |
| 19 | } |
| 20 | |
| 21 | #endif // JPH_PLATFORM_WINDOWS_UWP || (JPH_PLATFORM_WINDOWS && JPH_CPU_ARM) |
| 22 | |
| 23 | JPH_NAMESPACE_END |