Files
tp/include/dolphin/os/OSTime.h
T
TakaRikka 1114b13da8 clean up dolphin files / work on some rels (#212)
* d_a_alldie / d_a_tboxSw / d_a_tag_gstart / d_a_tag_hstop

* dolphin OS work / cleanup

* dolphin GX work / cleanup

* finish changing dolphin files to C

* more files into C

* match rest of MSL_C math functions

* more dolphin files converted to C

* remove asm

* d_bg_w work

* remove asm

* d_a_alink work / kytag14
2022-11-11 11:09:48 -07:00

40 lines
808 B
C

#ifndef OSTIME_H
#define OSTIME_H
#include "dolphin/types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef s64 OSTime;
typedef u32 OSTick;
OSTime OS_SYSTEM_TIME : 0x800030D8;
typedef struct OSCalendarTime {
/* 0x00 */ s32 seconds;
/* 0x04 */ s32 minutes;
/* 0x08 */ s32 hours;
/* 0x0C */ s32 day_of_month;
/* 0x10 */ s32 month;
/* 0x14 */ s32 year;
/* 0x18 */ s32 week_day;
/* 0x1C */ s32 year_day;
/* 0x20 */ s32 milliseconds;
/* 0x24 */ s32 microseconds;
} OSCalendarTime;
OSTime OSGetTime(void);
OSTick OSGetTick(void);
OSTime __OSGetSystemTime(void);
OSTime __OSTimeToSystemTime(OSTime time);
void GetDates(OSTime ticks, OSCalendarTime* ct);
void OSTicksToCalendarTime(OSTime ticks, OSCalendarTime* ct);
#ifdef __cplusplus
};
#endif
#endif /* OSTIME_H */