linux/types.h: fix typo unchar
[oweals/u-boot.git] / include / time.h
index 31d386729ef5b1f7fa4bf7b2eb857c3237f5546f..71446c317148a8f521d88d5234c993acf5e4aec6 100644 (file)
@@ -96,4 +96,21 @@ ulong ticks2usec(unsigned long ticks);
  */
 void wait_ticks(unsigned long ticks);
 
+/**
+ * timer_get_us() - Get monotonic microsecond timer
+ *
+ * @return value of monotonic microsecond timer
+ */
+unsigned long timer_get_us(void);
+
+/**
+ * get_ticks() - Get the current tick value
+ *
+ * This is an internal value used by the timer on the system. Ticks increase
+ * monotonically at the rate given by get_tbclk().
+ *
+ * @return current tick value
+ */
+uint64_t get_ticks(void);
+
 #endif /* _TIME_H */