X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Ftime.h;h=1e9b369be7cb029f0eafa6ad9180affe73b36b6e;hb=67d74ce2fa7e0cdcf102504c6546ce5c23462158;hp=9fd0d73fb4e4342dc7650c1b4dcb114772b257ea;hpb=504bf790da08db9b4a443566cf6ef577f9c7996a;p=oweals%2Fu-boot.git diff --git a/include/time.h b/include/time.h index 9fd0d73fb4..1e9b369be7 100644 --- a/include/time.h +++ b/include/time.h @@ -4,6 +4,7 @@ #define _TIME_H #include +#include unsigned long get_timer(unsigned long base); @@ -21,6 +22,14 @@ unsigned long timer_get_us(void); */ void timer_test_add_offset(unsigned long offset); +/** + * usec_to_tick() - convert microseconds to clock ticks + * + * @usec: duration in microseconds + * Return: duration in clock ticks + */ +uint64_t usec_to_tick(unsigned long usec); + /* * These inlines deal with timer wrapping correctly. You are * strongly encouraged to use them