Use function names that make more sense
This commit is contained in:
@@ -59,17 +59,17 @@ struct timespec *uc_tssub(struct timespec *dst, const struct timespec *a, const
|
||||
*/
|
||||
int uc_tscmp(const struct timespec *a, const struct timespec *b);
|
||||
|
||||
static inline uint64_t uc_tv2msec(const struct timeval *t)
|
||||
static inline uint64_t uc_tv2milisec(const struct timeval *t)
|
||||
{
|
||||
return t->tv_sec * 1000 + t->tv_usec / 1000;
|
||||
}
|
||||
|
||||
static inline uint64_t uc_ts2msec(const struct timespec *t)
|
||||
static inline uint64_t uc_ts2milisec(const struct timespec *t)
|
||||
{
|
||||
return t->tv_sec * 1000 + t->tv_nsec / 10000000;
|
||||
}
|
||||
|
||||
static inline uint64_t uc_ts2nsec(const struct timespec *t)
|
||||
static inline uint64_t uc_ts2nanosec(const struct timespec *t)
|
||||
{
|
||||
return t->tv_sec * 1000000000ULL + t->tv_nsec;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user