dtk_addtime(3)

dtk_addtime3

Timestamp adjustment function

Usage

#include <dtk_time.h>

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

Overview

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.

Releases

Unchanged in 2 releases since Debian 7 (Wheezy).

  1. 7–8

From libdrawtk-dev 2.0-2.1 in Debian 8 (Jessie). Parsed by carta from the page's man source.