summaryrefslogtreecommitdiff
path: root/contrib/SDL-3.2.8/src/timer/vita
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2026-03-06 13:30:59 -0800
committer3gg <3gg@shellblade.net>2026-03-06 13:30:59 -0800
commit30f41c02aec763d32e62351452da9ef582bc3472 (patch)
tree6bec3f65bfdcbf7f1a631da21a6d613bef5db2fa /contrib/SDL-3.2.8/src/timer/vita
parent452ff21ca02e315c64ceeb3f21c1ea357aeb1bc8 (diff)
Move contrib libraries to contrib repo
Diffstat (limited to 'contrib/SDL-3.2.8/src/timer/vita')
-rw-r--r--contrib/SDL-3.2.8/src/timer/vita/SDL_systimer.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/contrib/SDL-3.2.8/src/timer/vita/SDL_systimer.c b/contrib/SDL-3.2.8/src/timer/vita/SDL_systimer.c
deleted file mode 100644
index 811a4bb..0000000
--- a/contrib/SDL-3.2.8/src/timer/vita/SDL_systimer.c
+++ /dev/null
@@ -1,51 +0,0 @@
1/*
2 Simple DirectMedia Layer
3 Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
4
5 This software is provided 'as-is', without any express or implied
6 warranty. In no event will the authors be held liable for any damages
7 arising from the use of this software.
8
9 Permission is granted to anyone to use this software for any purpose,
10 including commercial applications, and to alter it and redistribute it
11 freely, subject to the following restrictions:
12
13 1. The origin of this software must not be misrepresented; you must not
14 claim that you wrote the original software. If you use this software
15 in a product, an acknowledgment in the product documentation would be
16 appreciated but is not required.
17 2. Altered source versions must be plainly marked as such, and must not be
18 misrepresented as being the original software.
19 3. This notice may not be removed or altered from any source distribution.
20*/
21#include "SDL_internal.h"
22
23#ifdef SDL_TIMER_VITA
24
25#include "../SDL_timer_c.h"
26#include <stdlib.h>
27#include <time.h>
28#include <sys/time.h>
29#include <psp2/kernel/processmgr.h>
30
31
32Uint64 SDL_GetPerformanceCounter(void)
33{
34 return sceKernelGetProcessTimeWide();
35}
36
37Uint64 SDL_GetPerformanceFrequency(void)
38{
39 return SDL_US_PER_SECOND;
40}
41
42void SDL_SYS_DelayNS(Uint64 ns)
43{
44 const Uint64 max_delay = 0xffffffffLL * SDL_NS_PER_US;
45 if (ns > max_delay) {
46 ns = max_delay;
47 }
48 sceKernelDelayThreadCB((SceUInt)SDL_NS_TO_US(ns));
49}
50
51#endif // SDL_TIMER_VITA