gesture_timer_set_ms()

Set a gesture timer from a timestamp

Synopsis:

#include <gestures/timer.h>
int gesture_timer_set_ms(struct gesture_base *gesture,
                         int timer_id,
                         unsigned ms,
                         uint64_t base_nsec)

Arguments:

gesture
A pointer to the gesture.
timer_id
The timer to set. 8
ms
The expiry time in milliseconds.
base_nsec
The base time in nanoseconds. The ms parameter is compared to this time to determine whether the timer has expired.

Library:

libgestures

Description:

This function sets a timer using a timestamp as the reference time.

Returns:

0 on success, or -1 on failure.