include timestats in error_log for now
authorChristian Thaeter <ct@pipapo.org>
Sat, 29 Dec 2007 11:39:44 +0000 (12:39 +0100)
committerChristian Thaeter <ct@pipapo.org>
Sat, 29 Dec 2007 11:39:44 +0000 (12:39 +0100)
src/ctgit.c

index 4b60f4e5ef7f7cdbd8f52f795030d5d6f598df03..1bd96f945b1f193be5e2aa7d4637aa12bad07088 100644 (file)
@@ -149,10 +149,15 @@ main (int argc, char**argv)
                             )
               );
 
+  timestat = clock() - timestat;
+  html_list_append (error_log, html (
+                                     html_fmt ("processing took %g secs\n", timestat/(float)CLOCKS_PER_SEC),
+                                     html_tag("br")
+                                     )
+                    );
+
   html_fprint (stdout, page);
 
-  timestat = clock() - timestat;
-  fprintf (stderr, "processing took %g secs\n", timestat/(float)CLOCKS_PER_SEC);
 
   html_free (page);