+++ /dev/null
-\r
-// This file is part of the PicoDrive Megadrive Emulator\r
-\r
-// Copyright (c) 2011 FinalDave (emudave (at) gmail.com)\r
-\r
-// This code is licensed under the GNU General Public License version 2.0 and the MAME License.\r
-// You can choose the license that has the most advantages for you.\r
-\r
-// SVN repository can be found at http://code.google.com/p/cyclone68000/\r
-\r
-#include "PicoInt.h"\r
-\r
-#ifdef _WIN32_WCE\r
-\r
-#pragma warning(disable:4514)\r
-#pragma warning(push)\r
-#pragma warning(disable:4201)\r
-#include <windows.h>\r
-#pragma warning(pop)\r
-\r
-static float Period=0.0f;\r
-static LARGE_INTEGER TimeStart={0,0};\r
-\r
-int ProfileInit()\r
-{\r
- LARGE_INTEGER freq={0,0};\r
-\r
- QueryPerformanceFrequency(&freq);\r
-\r
- Period =(float)freq.HighPart*4294967296.0f;\r
- Period+=(float)freq.LowPart;\r
-\r
- if (Period>=1.0f) Period=1.0f/Period;\r
- return 0;\r
-}\r
-\r
-int ProfileStart()\r
-{\r
- QueryPerformanceCounter(&TimeStart);\r
-\r
- return 0;\r
-}\r
-\r
-float ProfileTime()\r
-{\r
- LARGE_INTEGER end={0,0};\r
- int ticks=0;\r
- float seconds=0.0f;\r
-\r
- QueryPerformanceCounter(&end);\r
-\r
- ticks=end.LowPart-TimeStart.LowPart;\r
- seconds=(float)ticks*Period;\r
-\r
- return seconds;\r
-}\r
-\r
-#endif\r
-\r