| 53 | } |
| 54 | |
| 55 | OSTime __OSTimeToSystemTime(OSTime time) |
| 56 | { |
| 57 | BOOL enabled; |
| 58 | OSTime* timeAdjustAddr = (OSTime*)(OS_BASE_CACHED + OS_SYSTEMTIME_BASE); |
| 59 | OSTime result; |
| 60 | |
| 61 | enabled = OSDisableInterrupts(); |
| 62 | result = *timeAdjustAddr + time; |
| 63 | OSRestoreInterrupts(enabled); |
| 64 | |
| 65 | return result; |
| 66 | } |
| 67 | |
| 68 | inline BOOL IsLeapYear(s32 year) |
| 69 | { |
no test coverage detected