time: move timer APIs to include/time.h
[platform/kernel/u-boot.git] / include / time.h
1 /*
2  * SPDX-License-Identifier:     GPL-2.0+
3  */
4
5 #ifndef _TIME_H
6 #define _TIME_H
7
8 unsigned 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  */
14 unsigned long timer_get_us(void);
15
16 #endif /* _TIME_H */