Updated: October 28, 2024 |
Retrieve the current sensor time
#include <sensor/external_sensor_api.h>
typedef int64_t(* get_time_func_t)(void *handle);
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().
This function is optional. If not specified, the default implementation uses CLOCK_MONOTONIC
The current sensor time in microseconds.