This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
/
SDL_systimer.c
60 lines (47 loc) · 1.32 KB
1
2
/*
SDL - Simple DirectMedia Layer
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
*/
22
#include "SDL_config.h"
23
24
25
#if defined(SDL_TIMER_DUMMY) || defined(SDL_TIMERS_DISABLED)
26
27
#include "SDL_timer.h"
28
29
void
SDL_StartTicks(void)
30
31
32
{
}
33
34
Uint32
SDL_GetTicks(void)
35
{
36
37
SDL_Unsupported();
return 0;
38
39
}
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;
}
52
53
void
SDL_Delay(Uint32 ms)
54
{
55
SDL_Unsupported();
56
57
}
58
#endif /* SDL_TIMER_DUMMY || SDL_TIMERS_DISABLED */
59
60
/* vi: set ts=4 sw=4 expandtab: */