From: Andrej Kacian Date: Mon, 12 May 2014 16:48:47 +0000 (+0200) Subject: Remove test_strftime() that was mistakenly included in previous commits. X-Git-Tag: 3.10.0~54 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=13b8ca1a51e99deed9e350865fc421216914efff;ds=sidebyside Remove test_strftime() that was mistakenly included in previous commits. --- diff --git a/src/main.c b/src/main.c index e04211553..26c7e18c1 100644 --- a/src/main.c +++ b/src/main.c @@ -958,28 +958,6 @@ static void reset_statistics(void) session_stats.time_started = time(NULL); } -static void test_strftime(void) -{ - int i; - char buf[64]; - time_t dummy = time(NULL); - struct tm tbuf; - struct tm *lt = localtime_r(&dummy, &tbuf); - - { - START_TIMING("fast_strftime"); - for (i = 0; i < 100000; i++) - fast_strftime(buf, 64, "%x %X %r", lt); - END_TIMING(); - } - { - START_TIMING("strftime"); - for (i = 0; i < 100000; i++) - strftime(buf, 64, "%x %X %r", lt); - END_TIMING(); - } -} - int main(int argc, char *argv[]) { #ifdef HAVE_DBUS_GLIB @@ -1574,7 +1552,6 @@ int main(int argc, char *argv[]) END_TIMING(); - test_strftime(); gtk_main(); #ifdef HAVE_NETWORKMANAGER_SUPPORT