get_time()

Retrieve the current sensor time

Synopsis:

#include <sensor/external_sensor_api.h>
int64_t get_time(void *handle)

Arguments:

handle
The handle that's returned from calling the open_external_sensor() function.

Library:

libsensor

Description:

This function must return the current time value in the sensor time domain in microseconds. The time domain used here must be the same one as the one used to fill the timestamp in GetPacket().

Note:

This function is optional. If not specified, the default implementation uses CLOCK_MONOTONIC

Returns:

the current sensor time in microseconds.