forked from LeenkxTeam/LNXSDK
HaxeJolt
This commit is contained in:
23
lib/haxejolt/JoltPhysics/Jolt/Core/TickCounter.cpp
Normal file
23
lib/haxejolt/JoltPhysics/Jolt/Core/TickCounter.cpp
Normal file
@ -0,0 +1,23 @@
|
||||
// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
|
||||
// SPDX-FileCopyrightText: 2021 Jorrit Rouwe
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#include <Jolt/Jolt.h>
|
||||
|
||||
#include <Jolt/Core/TickCounter.h>
|
||||
#include <Jolt/Core/IncludeWindows.h>
|
||||
|
||||
JPH_NAMESPACE_BEGIN
|
||||
|
||||
#if defined(JPH_PLATFORM_WINDOWS_UWP) || (defined(JPH_PLATFORM_WINDOWS) && defined(JPH_CPU_ARM))
|
||||
|
||||
uint64 GetProcessorTickCount()
|
||||
{
|
||||
LARGE_INTEGER count;
|
||||
QueryPerformanceCounter(&count);
|
||||
return uint64(count.QuadPart);
|
||||
}
|
||||
|
||||
#endif // JPH_PLATFORM_WINDOWS_UWP || (JPH_PLATFORM_WINDOWS && JPH_CPU_ARM)
|
||||
|
||||
JPH_NAMESPACE_END
|
||||
Reference in New Issue
Block a user