442aea57138cc37817ca000305d1daaa531f00f5 hiram Fri Jan 4 11:01:46 2013 -0800 single stderr message at exit to indicate total run time in apache error_log diff --git src/hg/hgBlat/hgBlat.c src/hg/hgBlat/hgBlat.c index 6ccca13..719a0f4 100644 --- src/hg/hgBlat/hgBlat.c +++ src/hg/hgBlat/hgBlat.c @@ -811,29 +811,32 @@ cartWebEnd(); } else { blatSeq(skipLeadingSpaces(userSeq), organism); } } /* Null terminated list of CGI Variables we don't want to save * permanently. */ char *excludeVars[] = {"Submit", "submit", "Clear", "Lucky", "type", "userSeq", "seqFile", "showPage", "changeInfo", NULL}; int main(int argc, char *argv[]) /* Process command line. */ { +long enteredMainTime = clock1000(); oldVars = hashNew(10); cgiSpoof(&argc, argv); /* org has precedence over db when changeInfo='orgChange' */ orgChange = sameOk(cgiOptionalString("changeInfo"),"orgChange"); if (orgChange) { cgiVarSet("db", hDefaultDbForGenome(cgiOptionalString("org"))); } cartEmptyShell(doMiddle, hUserCookie(), excludeVars, oldVars); +fprintf(stderr, "CGI_TIME: hgBlat: Overall total time: %ld millis\n", + clock1000() - enteredMainTime); return 0; }