56 #define OSTimerClockSpeed ((OSGetSystemInfo()->busClockSpeed) / 4)
58 #define OSSecondsToTicks(val) ((uint64_t)(val) * (uint64_t)OSTimerClockSpeed)
59 #define OSMillisecondsToTicks(val) (((uint64_t)(val) * (uint64_t)OSTimerClockSpeed) / 1000ull)
60 #define OSMicrosecondsToTicks(val) (((uint64_t)(val) * (uint64_t)OSTimerClockSpeed) / 1000000ull)
61 #define OSNanosecondsToTicks(val) (((uint64_t)(val) * ((uint64_t)OSTimerClockSpeed) / 31250ull) / 32000ull)
63 #define OSTicksToSeconds(val) ((uint64_t)(val) / (uint64_t)OSTimerClockSpeed)
64 #define OSTicksToMilliseconds(val) (((uint64_t)(val) * 1000ull) / (uint64_t)OSTimerClockSpeed)
65 #define OSTicksToMicroseconds(val) (((uint64_t)(val) * 1000000ull) / (uint64_t)OSTimerClockSpeed)
66 #define OSTicksToNanoseconds(val) (((uint64_t)(val) * 32000ull) / ((uint64_t)OSTimerClockSpeed / 31250ull))
int32_t tm_hour
Hours since midnight. The range is 0-23.
int32_t tm_sec
Seconds after the minute. The range is 0-59.
int32_t tm_wday
Days since Sunday. The range is 0-6.
int32_t tm_yday
Days since January 1. The range is 0-365.
int32_t tm_mday
Day of the month. The range is 1-31.
int32_t tm_mon
Month since January. The range is 0-11.
int32_t tm_usec
Microseconds after the millisecond. The range is 0-999.
int32_t tm_year
Years in AD. The range is 1-....
int32_t tm_msec
Milliseconds after the second. The range is 0-999.
int32_t tm_min
Minutes after the hour. The range is 0-59.
OSTime OSCalendarTimeToTicks(OSCalendarTime *calendarTime)
void OSTicksToCalendarTime(OSTime time, OSCalendarTime *calendarTime)
BOOL __OSSetAbsoluteSystemTime(OSTime time)
Same as std c struct tm but with msec and usec added.