Function anjay_sched_time_to_next_ms
Defined in File core.h
Function Documentation
-
int anjay_sched_time_to_next_ms(anjay_t *anjay, int *out_delay_ms)
Determines time of next scheduled task in milliseconds.
This function is equivalent to anjay_sched_time_to_next but, as a convenience for users of system calls such as
poll(), the result is returned as a single integer number of milliseconds.- Parameters:
anjay – Anjay object to operate on.
out_delay_ms – [out] Relative time from now of next scheduled task, in milliseconds.
- Returns:
0 on success, or a negative value if no tasks are scheduled.