All pastes #363889 Raw Edit

Untitled

public text v1 · immutable
#363889 ·published 2007-02-19 19:47 UTC
rendered paste body
typedef 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 */