Index: trunk/stac/src/stac.c
===================================================================
--- trunk/stac/src/stac.c	(revision 2711)
+++ trunk/stac/src/stac.c	(revision 2751)
@@ -2,8 +2,19 @@
 #include "pslib.h"
 #include "stac.h"
+#include <sys/time.h>
+
+double getTime(void)
+/* Gets the current time.  Got this from Nick Kaiser's fetchpix.c */
+{
+    struct timeval tv;
+    gettimeofday(&tv, NULL);
+    return(tv.tv_sec + 1.e-6 * tv.tv_usec);
+}
 
 
 int main(int argc, char **argv)
 {
+
+    double startTime = getTime();
 
 #if 0
@@ -24,4 +35,6 @@
     psTraceSetLevel("stac.combine",10);
     psTraceSetLevel("stac.rejection",10);
+    psTraceSetLevel("stac.time",10);
+    
 
     // Set logging level
@@ -46,4 +59,6 @@
     psArray *transformedErrors = NULL;
     psArray *transformed = stacTransform(inputs, inverseMaps, errors, &transformedErrors, NULL, config);
+
+    psTrace("stac.time",1,"Transformation completed at %f seconds\n", getTime() - startTime);
 
     // Combine with rejection
@@ -87,5 +102,7 @@
     psFree(combined);
 
-    // Check memory for leaks, corruption
+    psTrace("stac.time",1,"Combination completed at %f seconds\n", getTime() - startTime);
+
+   // Check memory for leaks, corruption
     stacCheckMemory();
 }
