Untitled
public text v1 · immutabletypedef struct { hal_s32_t seconds; hal_s32_t nanoseconds; } hal_timespec;
void hal_timespec_assign(hal_timespec *t, long s, long ns); /* Assign t = {s,ns}
int hal_timespec_subtract_ns(hal_timespec *t, long ns); /* Subtract ns from t, return TRUE if not yet expired */
int hal_timespec_subtract(hal_timespec *t, const hal_timespec *u); /* Subtract u from T, return TRUE if not yet expired */
int hal_timespec_expired(hal_timespec *t); /* Return TRUE if t expired */