IP_PulseTimed

IP_PulseTimed — sets up timers to trigger pulses.

Syntax

#include <cogent.h>
timer_t IP_PulseTimed(int  pulse,
 time_t  init_sec,
 time_t  init_nsec,
 time_t  interval_sec,
 time_t  interval_nsec);

Arguments

pulse

A pulse ID as generated by IP_PulseNew.

init_sec

Seconds of delay prior to the first timer expiry.

init_nsec

Nanoseconds of delay prior to the first timer expiry.

interval_sec

Seconds of delay for subsequent timing intervals.

interval_nsec

Nanoseconds of delay for subsequent timing intervals.

Returns

A timer identifier on success, or -1 on failure and errno is set.

Description

This function causes a pulse to be triggered after a given number of init_sec + init_nsec, and then to trigger on a regular interval every interval_sec + interval_nsec thereafter.

See Also

Pulses and Timers, IP_TimerTime