From 7e1114c09b92305ad794248462d25a899db9f8e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Tue, 10 Feb 2015 20:45:14 +0100 Subject: [PATCH] Use function names that make more sense --- include/ucore/time.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ucore/time.h b/include/ucore/time.h index 607bd44..e643f12 100644 --- a/include/ucore/time.h +++ b/include/ucore/time.h @@ -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; }