blob: 4cc56076488e95ca332d1eb74bc33b4dc889e301 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Samsung Exynos SoC series dsp driver
*
* Copyright (c) 2019 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*/
#ifndef __DSP_TIME_H__
#define __DSP_TIME_H__
#include <linux/ktime.h>
#define TIMESTAMP_START (1 << 0)
#define TIMESTAMP_END (1 << 1)
struct dsp_time {
struct timespec start;
struct timespec end;
struct timespec interval;
};
void dsp_time_get_timestamp(struct dsp_time *time, int opt);
void dsp_time_get_interval(struct dsp_time *time);
void dsp_time_print(struct dsp_time *time, const char *f, ...);
#endif
|