From dee2c5659e869bd14acf62e00bbb808aa1694461 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 8 Feb 2012 16:29:31 +1000 Subject: Cleaning up some comments. --- LuaSL/src/LuaSL_utilities.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'LuaSL/src/LuaSL_utilities.c') diff --git a/LuaSL/src/LuaSL_utilities.c b/LuaSL/src/LuaSL_utilities.c index 6a111a2..d73c06d 100644 --- a/LuaSL/src/LuaSL_utilities.c +++ b/LuaSL/src/LuaSL_utilities.c @@ -61,7 +61,7 @@ char *getDateTime(struct tm **nowOut, char *dateOut, time_t *timeOut) if (timeOut) *timeOut = szClock; - // format + // format strftime(date, DATE_TIME_LEN, "%d/%m/%Y %H:%M:%S\r", newTime); return (dateTime); } @@ -73,9 +73,6 @@ float timeDiff(struct timeval *now, struct timeval *then) struct timeval thisTime = { 0, 0 }; double result = 0.0; -//fprintf(stderr, " %ld . %ld\n", now->tv_sec, now->tv_usec); -//fprintf(stderr, "minus %ld . %ld\n", then->tv_sec, then->tv_usec); - thisTime.tv_sec = now->tv_sec; thisTime.tv_usec = now->tv_usec; if (thisTime.tv_usec < then->tv_usec) @@ -87,11 +84,8 @@ float timeDiff(struct timeval *now, struct timeval *then) thisTime.tv_sec -= then->tv_sec; result = ((double) thisTime.tv_usec) / ((double) 1000000.0); result += thisTime.tv_sec; -//fprintf(stderr, "equals %lf\n", result); -//fflush(stderr); return result; } else return 0.0; } - -- cgit v1.1