From b6489395e103929445d78f9a8145cf62262fd82e Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 16 May 2014 10:34:31 +1000 Subject: Move timeDiff() to LumbrJack, it has more than one user now. --- src/love/love.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'src/love/love.c') diff --git a/src/love/love.c b/src/love/love.c index efb686a..183e20e 100644 --- a/src/love/love.c +++ b/src/love/love.c @@ -74,30 +74,6 @@ static const char *names[] = }; -static float timeDiff(struct timeval *now, struct timeval *then) -{ - if (0 == gettimeofday(now, 0)) - { - struct timeval thisTime = { 0, 0 }; - double result = 0.0; - - thisTime.tv_sec = now->tv_sec; - thisTime.tv_usec = now->tv_usec; - if (thisTime.tv_usec < then->tv_usec) - { - thisTime.tv_sec--; - thisTime.tv_usec += 1000000; - } - thisTime.tv_usec -= then->tv_usec; - thisTime.tv_sec -= then->tv_sec; - result = ((double) thisTime.tv_usec) / ((double) 1000000.0); - result += thisTime.tv_sec; - return result; - } - else - return 0.0; -} - static void _edje_signal_cb(void *data, Evas_Object *obj, const char *emission, const char *source) { -- cgit v1.1