Use function names that make more sense

This commit is contained in:
Nils O. Selåsdal
2015-02-10 20:45:14 +01:00
parent a522c55155
commit 7e1114c09b
+3 -3
View File
@@ -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;
}