diff options
Diffstat (limited to 'drivers/media/platform/msm/camera_v3/cam_utils/cam_common_util.h')
-rw-r--r-- | drivers/media/platform/msm/camera_v3/cam_utils/cam_common_util.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/drivers/media/platform/msm/camera_v3/cam_utils/cam_common_util.h b/drivers/media/platform/msm/camera_v3/cam_utils/cam_common_util.h index 47d441fe3aa1..136eaf013695 100644 --- a/drivers/media/platform/msm/camera_v3/cam_utils/cam_common_util.h +++ b/drivers/media/platform/msm/camera_v3/cam_utils/cam_common_util.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. +/* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -52,4 +52,26 @@ int cam_common_util_get_string_index(const char **strings, uint32_t cam_common_util_remove_duplicate_arr(int32_t *array, uint32_t num); +/** + * cam_common_util_get_time_diff() + * + * @brief Get the time difference between 2 timestamps in usecs + * + * @t1: Pointer to the later time + * @t2: Pointer to the prev time + * + * @return: differnce in usecs + */ +uint64_t cam_common_util_get_time_diff(struct timeval *t1, struct timeval *t2); + +/** + * cam_comomon_util_get_curr_timestamp() + * + * @brief Get the current timestamp + * + * @time_stamp: Pointer to the time + * + * @return: void + */ +void cam_common_util_get_curr_timestamp(struct timeval *time_stamp); #endif /* _CAM_COMMON_UTIL_H_ */ |