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
unsigned int u32
Definition: tamtypes.h:30
u32 cpu_ticks(void)