Hi,
I'd like to achieve high-precision timing in Unity and thus I've used high-resolution timers such as:
#if UNITY_IPHONE || UNITY_XBOX360
[DllImport ("__Internal")]
#else
[DllImport("Kernel32.dll")]
private static extern bool QueryPerformanceCounter(out long lpPerformanceCount);
[DllImport("Kernel32.dll")]
private static extern bool QueryPerformanceFrequency(out long lpFrequency);
#endif
Would it be working on Windows/Macintosh/Linux and Consoles ?
Thank you
↧