Rev 8494 | Rev 9211 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8494 | Rev 9202 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | static char rcsid = |
24 | static char rcsid = |
25 | "@(#) $Id: SDL_systimer.c,v 1.2 2001/04/26 16:50:18 hercules Exp $"; |
25 | "@(#) $Id: SDL_systimer.c,v 1.2 2001/04/26 16:50:18 hercules Exp $"; |
26 | #endif |
26 | #endif |
Line 27... | Line 27... | ||
27 | 27 | ||
28 | #include |
28 | #include |
29 | #include |
- | |
30 | #include |
- | |
31 | #include |
29 | #include |
32 | #include |
30 | #include |
33 | #include |
- | |
Line 34... | Line 31... | ||
34 | #include |
31 | #include |
35 | 32 | ||
36 | #include "SDL_error.h" |
33 | #include "SDL_error.h" |
- | 34 | #include "SDL_timer.h" |
|
Line 37... | Line 35... | ||
37 | #include "SDL_timer.h" |
35 | #include "SDL_timer_c.h" |
38 | #include "SDL_timer_c.h" |
36 | #include "SDL_kos.h" |
39 | 37 | ||
Line 87... | Line 85... | ||
87 | return (curtime-starttime)*10; |
85 | return (curtime-starttime)*10; |
88 | } |
86 | } |
Line 89... | Line 87... | ||
89 | 87 | ||
90 | void SDL_Delay (Uint32 ms) |
88 | void SDL_Delay (Uint32 ms) |
91 | { |
89 | { |
92 | delay(ms); |
90 | __kos__delay100(ms); |
93 | /* Uint32 start = SDL_GetTicks(); |
91 | /* Uint32 start = SDL_GetTicks(); |
94 | do |
92 | do |
95 | __asm__("int $0x40" :: "a"(68),"b"(1)); |
93 | __asm__("int $0x40" :: "a"(68),"b"(1)); |
96 | while (SDL_GetTicks()-start < ms);*/ |
94 | while (SDL_GetTicks()-start < ms);*/ |