--- /dev/null
+#if WIN32\r
+\r
+typedef unsigned __int64 TICKS;\r
+\r
+#pragma warning(disable:4035)\r
+inline TICKS GetClockTicks()\r
+ {\r
+ _asm\r
+ {\r
+ _emit 0x0f\r
+ _emit 0x31\r
+ }\r
+ }\r
+\r
+#define StartTimer() __int64 t1__ = GetClockTicks()\r
+\r
+#define GetElapsedTicks() (GetClockTicks() - t1__)\r
+\r
+static double TicksToSecs(TICKS t)\r
+ {\r
+ return (__int64) t/2.5e9;\r
+ }\r
+\r
+#endif // WIN32\r