26 #define TIME_BUFSIZE 27 27 #define INVALID_TIME { 0, 0 } 29 extern const struct time invalid_time; 83 bool time_format(
const struct time *t,
const char *format,
char *buffer,
size_t len);
uint64 time_divide(const struct time *t1, const struct time *t2)
Definition: time.c:75
uint32 nsecs
Definition: time.h:23
void time_mult(struct time *res, const struct time *t1, const int mult)
Definition: time.c:82
unsigned HAKA_64BIT_TYPE uint64
Definition: types.h:30
unsigned HAKA_32BIT_TYPE uint32
Definition: types.h:29
bool time_gettimestamp(struct time *t)
Definition: time.c:26
int time_cmp(const struct time *t1, const struct time *t2)
Definition: time.c:96
int time_diff(struct time *res, const struct time *t1, const struct time *t2)
Definition: time.c:63
bool time_format(const struct time *t, const char *format, char *buffer, size_t len)
Definition: time.c:131
double time_sec(const struct time *t)
Definition: time.c:91
time_t secs
Definition: time.h:22
void time_add(struct time *res, const struct time *t1, const struct time *t2)
Definition: time.c:39
bool time_tostring(const struct time *t, char *buffer, size_t len)
Definition: time.c:117
bool time_isvalid(const struct time *t)
Definition: time.c:146
void time_build(struct time *t, double secs)
Definition: time.c:20