table of contents
other versions
- jessie 2.0-2.1
DTK_ADDTIME(3) | Draw Toolkit manual | DTK_ADDTIME(3) |
NAME¶
dtk_addtime - timestamp adjustment functionSYNOPSIS¶
#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)2011 | EPFL |