diff_time_ms()

Return the elapsed time between two events.

Synopsis:

#include <gestures/types.h>
 
int32_t diff_time_ms(gesture_coords_t *coords1, gesture_coords_t *coords2)

Since:

BlackBerry 10.0.0

Arguments:

coords1

A pointer to the first gesture event.

coords2

A pointer to the second gesture event.

Library:

libgestures (For the qcc command, use -l gestures to link against this library)

Description:

This function returns the elapsed time between the two specified gesture events. You will likely need this function only if you are defining your own gestures.

Returns:

The elapsed time in milliseconds.