Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
TickCounter.h File Reference

Go to the source code of this file.

Functions

JPH_NAMESPACE_BEGIN JPH_INLINE uint64 GetProcessorTickCount ()
 Functionality to get the processors cycle counter. More...
 
uint64 GetProcessorTicksPerSecond ()
 Get the amount of ticks per second, note that this number will never be fully accurate as the amound of ticks per second may vary with CPU load, so this number is only to be used to give an indication of time for profiling purposes. More...
 

Function Documentation

◆ GetProcessorTickCount()

JPH_NAMESPACE_BEGIN JPH_INLINE uint64 GetProcessorTickCount ( )

Functionality to get the processors cycle counter.

◆ GetProcessorTicksPerSecond()

uint64 GetProcessorTicksPerSecond ( )

Get the amount of ticks per second, note that this number will never be fully accurate as the amound of ticks per second may vary with CPU load, so this number is only to be used to give an indication of time for profiling purposes.