Index: src/hg/js/utils.js
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/js/utils.js,v
retrieving revision 1.26
retrieving revision 1.27
diff -b -B -U 4 -r1.26 -r1.27
--- src/hg/js/utils.js	20 Nov 2009 23:51:17 -0000	1.26
+++ src/hg/js/utils.js	8 Feb 2010 22:07:29 -0000	1.27
@@ -426,8 +426,22 @@
         showWarnBox();
     }
 }
 
+function startTiming()
+{
+    var now = new Date();
+    return now.getTime();
+}
+
+function showTiming(start,whatTookSoLong)
+{
+    var now = new Date();
+    var end = (now.getTime() - start);
+    warn(whatTookSoLong+" took "+end+" msecs.");
+    return end;
+}
+
 function getHgsid()
 {
 // return current session id
     var hgsid;

