blob: 5ed021fabb8716cc56a1d9eb0c537dfb9edb8130 [file] [log] [blame]
Masahiro Yamadaa7b81762016-12-28 00:36:00 +09001/*
2 * SPDX-License-Identifier: GPL-2.0+
3 */
4
5#ifndef _TIME_H
6#define _TIME_H
7
8unsigned long get_timer(unsigned long base);
9
10/*
11 * Return the current value of a monotonically increasing microsecond timer.
12 * Granularity may be larger than 1us if hardware does not support this.
13 */
14unsigned long timer_get_us(void);
15
16#endif /* _TIME_H */