aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/love/love.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-16 10:34:31 +1000
committerDavid Walter Seikel2014-05-16 10:34:31 +1000
commitb6489395e103929445d78f9a8145cf62262fd82e (patch)
tree4a87062ec2b9630f783406e101bc12c18392e244 /src/love/love.c
parentImplement llCSV2List(). (diff)
downloadSledjHamr-b6489395e103929445d78f9a8145cf62262fd82e.zip
SledjHamr-b6489395e103929445d78f9a8145cf62262fd82e.tar.gz
SledjHamr-b6489395e103929445d78f9a8145cf62262fd82e.tar.bz2
SledjHamr-b6489395e103929445d78f9a8145cf62262fd82e.tar.xz
Move timeDiff() to LumbrJack, it has more than one user now.
Diffstat (limited to 'src/love/love.c')
-rw-r--r--src/love/love.c24
1 files changed, 0 insertions, 24 deletions
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[] =
74}; 74};
75 75
76 76
77static float timeDiff(struct timeval *now, struct timeval *then)
78{
79 if (0 == gettimeofday(now, 0))
80 {
81 struct timeval thisTime = { 0, 0 };
82 double result = 0.0;
83
84 thisTime.tv_sec = now->tv_sec;
85 thisTime.tv_usec = now->tv_usec;
86 if (thisTime.tv_usec < then->tv_usec)
87 {
88 thisTime.tv_sec--;
89 thisTime.tv_usec += 1000000;
90 }
91 thisTime.tv_usec -= then->tv_usec;
92 thisTime.tv_sec -= then->tv_sec;
93 result = ((double) thisTime.tv_usec) / ((double) 1000000.0);
94 result += thisTime.tv_sec;
95 return result;
96 }
97 else
98 return 0.0;
99}
100
101static void 77static void
102_edje_signal_cb(void *data, Evas_Object *obj, const char *emission, const char *source) 78_edje_signal_cb(void *data, Evas_Object *obj, const char *emission, const char *source)
103{ 79{