ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
timer.c
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
16
#include <
tamtypes.h
>
17
18
#ifdef F_cpu_ticks
19
u32
cpu_ticks
(
void
) {
20
u32
out;
21
22
asm
(
"mfc0\t%0, $9\n"
:
"=r"
(out));
23
return
out;
24
}
25
#endif
tamtypes.h
u32
unsigned int u32
Definition:
tamtypes.h:30
cpu_ticks
u32 cpu_ticks(void)
ee
kernel
src
timer.c
Generated on Thu Feb 11 2021 11:42:22 for ps2sdk by
1.9.2