Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
60 lines (47 loc) · 1.32 KB

SDL_systimer.c

File metadata and controls

60 lines (47 loc) · 1.32 KB
 
1
2
/*
SDL - Simple DirectMedia Layer
Feb 12, 2011
Feb 12, 2011
3
Copyright (C) 1997-2011 Sam Lantinga
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Sam Lantinga
slouken@libsdl.org
*/
Feb 21, 2006
Feb 21, 2006
22
#include "SDL_config.h"
Apr 14, 2006
Apr 14, 2006
24
25
#if defined(SDL_TIMER_DUMMY) || defined(SDL_TIMERS_DISABLED)
Mar 8, 2006
Mar 8, 2006
26
27
#include "SDL_timer.h"
Jul 10, 2006
Jul 10, 2006
28
29
void
SDL_StartTicks(void)
Jul 10, 2006
Jul 10, 2006
33
34
Uint32
SDL_GetTicks(void)
Jul 10, 2006
Jul 10, 2006
36
37
SDL_Unsupported();
return 0;
Mar 25, 2011
Mar 25, 2011
40
41
42
43
44
45
46
47
48
49
50
51
Uint64
SDL_GetPerformanceCounter(void)
{
return SDL_GetTicks();
}
Uint64
SDL_GetPerformanceFrequency(void)
{
return 1000;
}
Jul 10, 2006
Jul 10, 2006
52
53
void
SDL_Delay(Uint32 ms)
Jul 10, 2006
Jul 10, 2006
55
SDL_Unsupported();
Apr 14, 2006
Apr 14, 2006
58
#endif /* SDL_TIMER_DUMMY || SDL_TIMERS_DISABLED */
Jan 27, 2011
Jan 27, 2011
59
Jul 10, 2006
Jul 10, 2006
60
/* vi: set ts=4 sw=4 expandtab: */