get_time_func_t

Updated: October 26, 2022

Return 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 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 the system clock (CLOCK_MONOTONIC).

Returns:

The current camera time in microseconds.