Quantcast
Channel: Questions in topic: "dllimport"
Viewing all articles
Browse latest Browse all 160

Using DllImport of different platforms

$
0
0
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

Viewing all articles
Browse latest Browse all 160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>