e14743d1 |
1 | /* File "FastTimes.c" - Original code by Matt Slot <fprefect@ambrosiasw.com> */ |
2 | /* Created 4/24/99 - This file is hereby placed in the public domain */ |
3 | /* Updated 5/21/99 - Calibrate to VIA, add TBR support, renamed functions */ |
4 | /* Updated 10/4/99 - Use AbsoluteToNanoseconds() in case Absolute = double */ |
5 | /* Updated 2/15/00 - Check for native Time Manager, no need to calibrate */ |
6 | /* Updated 2/19/00 - Fixed default value for gScale under native Time Mgr */ |
7 | /* Updated 3/21/00 - Fixed ns conversion, create 2 different scale factors */ |
8 | /* Updated 5/03/00 - Added copyright and placed into PD. No code changes */ |
9 | /* Updated 8/01/00 - Made "Carbon-compatible" by replacing LMGetTicks() */ |
10 | |
11 | /* This file is Copyright (C) Matt Slot, 1999-2000. It is hereby placed into |
12 | the public domain. The author makes no warranty as to fitness or stability */ |
13 | |
14 | #include <Gestalt.h> |
15 | #include <LowMem.h> |
16 | #include <CodeFragments.h> |
17 | #include <DriverServices.h> |
18 | #include <Timer.h> |
19 | |
20 | #include "FastTimes.h" |
21 | |
22 | #ifdef TARGET_CPU_PPC |
23 | #undef GENERATINGPOWERPC /* stop whining */ |
24 | #define GENERATINGPOWERPC TARGET_CPU_PPC |
25 | #endif |
26 | |
27 | /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */ |
28 | /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */ |
29 | /* |
30 | On 680x0 machines, we just use Microseconds(). |
31 | |
32 | On PowerPC machines, we try several methods: |
33 | * DriverServicesLib is available on all PCI PowerMacs, and perhaps |
34 | Content-type: text/html
notaz's git - sdl_omap.git/blame - src/timer/macos/FastTimes.c
500 - Internal Server Error
Malformed UTF-8 character (fatal) at (eval 6) line 1, <$fd> line 79.