From 427da9b898ad6d6d6b091b375f9fc38f155b4813 Mon Sep 17 00:00:00 2001 From: Mikkel Kamstrup Erlandsen Date: Wed, 19 Mar 2014 21:29:13 +0100 Subject: device/utils: move mstime64() into utils since it is generally useful --- src/device.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/device.c') diff --git a/src/device.c b/src/device.c index ef97f72..e36509e 100644 --- a/src/device.c +++ b/src/device.c @@ -120,16 +120,6 @@ struct mux_device static struct collection device_list; pthread_mutex_t device_list_mutex; -static uint64_t mstime64(void) -{ - struct timeval tv; - gettimeofday(&tv, NULL); - - // Careful, avoid overflow on 32 bit systems - // time_t could be 4 bytes - return ((long long)tv.tv_sec) * 1000LL + ((long long)tv.tv_usec) / 1000LL; -} - static struct mux_device* get_mux_device_for_id(int device_id) { struct mux_device *dev = NULL; -- cgit v1.1-32-gdbae