summaryrefslogtreecommitdiff
path: root/include/time.h
blob: 5ed021fabb8716cc56a1d9eb0c537dfb9edb8130 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * SPDX-License-Identifier:	GPL-2.0+
 */

#ifndef _TIME_H
#define _TIME_H

unsigned long get_timer(unsigned long base);

/*
 * Return the current value of a monotonically increasing microsecond timer.
 * Granularity may be larger than 1us if hardware does not support this.
 */
unsigned long timer_get_us(void);

#endif /* _TIME_H */