dtk_addtime man page

dtk_addtime — 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.

See Also

dtk_nanosleep(3), dtk_gettime(3)

Referenced By

dtk_difftime_s(3).

2011 EPFL Draw Toolkit manual