X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Ftime.h;h=3f00e68713583e12a03adbcfefff84af7815c45a;hb=49c8ef0e45a91ec894ef15e7d043dafe8f1c5efd;hp=e99f9c8012701e7f0b62a37c0c71c12d2f4b8f87;hpb=cd304e218012de4ac2e3d55e869b2102af4fdcb2;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/time.h b/include/time.h index e99f9c8..3f00e68 100644 --- a/include/time.h +++ b/include/time.h @@ -17,6 +17,17 @@ unsigned long get_timer(unsigned long base); unsigned long timer_get_us(void); uint64_t get_timer_us(uint64_t base); +/** + * get_timer_us_long() - Get the number of elapsed microseconds + * + * This uses 32-bit arithmetic on 32-bit machines, which is enough to handle + * delays of over an hour. For 64-bit machines it uses a 64-bit value. + * + *@base: Base time to consider + *@return elapsed time since @base + */ +unsigned long get_timer_us_long(unsigned long base); + /* * timer_test_add_offset() *