dtk_addtime(3) timestamp adjustment function

SYNOPSIS

#include <dtk_time.h>

int dtk_addtime(struct dtk_timespec* ts, long sec, long nsec);

DESCRIPTION

The function dtk_addtime() adjusts the time pointed by ts by adding sec seconds and nsec nanoseconds.

RETURN VALUE

On success, the function returns 0, otherwise -1.

ERRORS

dtk_addtime() will fail if:

EINVAL
The value in the nsec field was not in the range -999999999 to 999999999.