gesture_timer_set_now()

Updated: April 19, 2023

Set a gesture timer from now

Synopsis:

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

Arguments:

gesture
A pointer to the gesture.
timer_id
The timer to set.
ms
The expiry time in milliseconds (from now).

Library:

libgestures

Description:

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

Returns:

0 on success, or -1 on failure.