SSBM Decomp
|
#include <platform.h>
Go to the source code of this file.
Data Structures | |
struct | OSCalendarTime |
Macros | |
#define | OS_BUS_CLOCK __OSBusClock |
#define | OS_TIMER_CLOCK (OS_BUS_CLOCK / 4) |
#define | OSTicksToSeconds(ticks) ((ticks) / (OS_TIMER_CLOCK)) |
#define | OSTicksToMilliseconds(ticks) ((ticks) / (OS_TIMER_CLOCK / 1000)) |
#define | OSTicksToMicroseconds(ticks) (((ticks) * 8) / (OS_TIMER_CLOCK / 125000)) |
#define | OSSecondsToTicks(sec) ((sec) * (OS_TIMER_CLOCK)) |
#define | OSMillisecondsToTicks(msec) ((msec) * (OS_TIMER_CLOCK / 1000)) |
#define | OSMicrosecondsToTicks(usec) (((usec) * (OS_TIMER_CLOCK / 125000)) / 8) |
#define | OSNanosecondsToTicks(nsec) (((nsec) * (OS_TIMER_CLOCK / 125000)) / 8000) |
Typedefs | |
typedef s64 | OSTime |
typedef u32 | OSTick |
Functions | |
void | OSTicksToCalendarTime (OSTime ticks, OSCalendarTime *td) |
OSTime | OSGetTime (void) |
OSTick | OSGetTick (void) |
OSTime | __OSTimeToSystemTime (OSTime) |
OSTime | __OSGetSystemTime (void) |
u32 __OSBusClock | AT_ADDRESS (0x800000F8) |
#define OS_BUS_CLOCK __OSBusClock |
#define OS_TIMER_CLOCK (OS_BUS_CLOCK / 4) |
#define OSTicksToSeconds | ( | ticks | ) | ((ticks) / (OS_TIMER_CLOCK)) |
#define OSTicksToMilliseconds | ( | ticks | ) | ((ticks) / (OS_TIMER_CLOCK / 1000)) |
#define OSTicksToMicroseconds | ( | ticks | ) | (((ticks) * 8) / (OS_TIMER_CLOCK / 125000)) |
#define OSSecondsToTicks | ( | sec | ) | ((sec) * (OS_TIMER_CLOCK)) |
#define OSMillisecondsToTicks | ( | msec | ) | ((msec) * (OS_TIMER_CLOCK / 1000)) |
#define OSMicrosecondsToTicks | ( | usec | ) | (((usec) * (OS_TIMER_CLOCK / 125000)) / 8) |
#define OSNanosecondsToTicks | ( | nsec | ) | (((nsec) * (OS_TIMER_CLOCK / 125000)) / 8000) |
void OSTicksToCalendarTime | ( | OSTime | ticks, |
OSCalendarTime * | td | ||
) |
OSTime OSGetTime | ( | void | ) |
OSTick OSGetTick | ( | void | ) |
OSTime __OSGetSystemTime | ( | void | ) |
|
extern |