PSPSDK 2026-01-13
Loading...
Searching...
No Matches
pspsystimer.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * pspsystimer.h - Prototypes for the sceSystimer library.
7 *
8 * Copyright (c) 2007 Iaroslav Gaponenko <adrahil@gmail.com>
9 *
10 */
11
12#ifndef __SYSTIMER_H__
13#define __SYSTIMER_H__
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19typedef int SceSysTimerId;
20
27
35
43
51
59
67void sceSTimerGetCount(SceSysTimerId timer, int* count);
68
78void sceSTimerSetHandler(SceSysTimerId timer, int cycle, int (*handler)(void), int unk1);
79
90//probably something to set the cycle of an active timer.
91void sceSTimerSetTMCY(SceSysTimerId timer, int unk1);
92
104void sceSTimerSetPrscl(SceSysTimerId timer, int unk1, int unk2);
105
106
107
108#ifdef __cplusplus
109}
110#endif
111
112#endif
void sceSTimerSetTMCY(SceSysTimerId timer, int unk1)
Unknown purpose.
void sceSTimerSetHandler(SceSysTimerId timer, int cycle, int(*handler)(void), int unk1)
Setup a SysTimer handler.
void sceSTimerGetCount(SceSysTimerId timer, int *count)
Get the current SysTimer timer count.
void sceSTimerSetPrscl(SceSysTimerId timer, int unk1, int unk2)
Set the prescale of a hardware timer.
void sceSTimerFree(SceSysTimerId timer)
Free an instance of a SysTimer timer.
void sceSTimerResetCount(SceSysTimerId timer)
Reset the current SysTimer timer count.
void sceSTimerStartCount(SceSysTimerId timer)
Start the SysTimer timer count.
SceSysTimerId sceSTimerAlloc(void)
Allocate a new SysTimer timer instance.
int SceSysTimerId
Definition pspsystimer.h:19
void sceSTimerStopCount(SceSysTimerId timer)
Stop the current SysTimer timer count.