Searched refs:tv (Results 1 – 3 of 3) sorted by relevance
18 int gettimeofday(struct timeval *tv, struct timezone *tz);21 int settimeofday(const struct timeval *tv, const struct timezone *tz);
32 gettimeofday(struct timeval *tv, struct timezone *tz) in gettimeofday() argument36 tv->tv_sec = nsec / 1000000000; in gettimeofday()37 tv->tv_usec = (nsec % 1000000000) / 1000; in gettimeofday()43 settimeofday(const struct timeval *tv, const struct timezone *tz) in settimeofday() argument
482 struct timeval tv; in sys_now() local484 gettimeofday(&tv, NULL); in sys_now()486 sec = (u32_t)(tv.tv_sec - starttime.tv_sec); in sys_now()487 usec = (u32_t)(tv.tv_usec - starttime.tv_usec); in sys_now()569 struct timeval tv; in sys_jiffies() local573 gettimeofday(&tv,NULL); in sys_jiffies()574 sec = tv.tv_sec - starttime.tv_sec; in sys_jiffies()575 usec = tv.tv_usec; in sys_jiffies()