get_time_func_t

Retrieve the current camera time

Synopsis:

#include <camera/external_camera_api.h>
typedef int64_t(* get_time_func_t)(void *handle);

Arguments:

handle
The handle that's returned from calling the function open_external_camera_func_t.

Library:

libcamapi

Description:

This function returns the current time value in the camera time domain in microseconds. The time domain used here must be the same one as the one used to fill the timestamp in get_preview_frame_func_t.

Note:

This function is optional. If this function isn't specified, the default implementation uses CLOCK_MONOTONIC.

Returns:

The current sensor time in microseconds.