Mac binaries
[jabaws.git] / website / archive / binaries / mac / src / muscle / timing.h
1 #if     WIN32\r
2 \r
3 typedef unsigned __int64 TICKS;\r
4 \r
5 #pragma warning(disable:4035)\r
6 inline TICKS GetClockTicks()\r
7         {\r
8         _asm\r
9                 {\r
10                 _emit   0x0f\r
11                 _emit   0x31\r
12                 }\r
13         }\r
14 \r
15 #define StartTimer()    __int64 t1__ = GetClockTicks()\r
16 \r
17 #define GetElapsedTicks()       (GetClockTicks() - t1__)\r
18 \r
19 static double TicksToSecs(TICKS t)\r
20         {\r
21         return (__int64) t/2.5e9;\r
22         }\r
23 \r
24 #endif  // WIN32\r