Changeset 2751 for trunk/stac/src/stac.c
- Timestamp:
- Dec 17, 2004, 11:39:39 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/stac/src/stac.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/stac.c
r2711 r2751 2 2 #include "pslib.h" 3 3 #include "stac.h" 4 #include <sys/time.h> 5 6 double getTime(void) 7 /* Gets the current time. Got this from Nick Kaiser's fetchpix.c */ 8 { 9 struct timeval tv; 10 gettimeofday(&tv, NULL); 11 return(tv.tv_sec + 1.e-6 * tv.tv_usec); 12 } 4 13 5 14 6 15 int main(int argc, char **argv) 7 16 { 17 18 double startTime = getTime(); 8 19 9 20 #if 0 … … 24 35 psTraceSetLevel("stac.combine",10); 25 36 psTraceSetLevel("stac.rejection",10); 37 psTraceSetLevel("stac.time",10); 38 26 39 27 40 // Set logging level … … 46 59 psArray *transformedErrors = NULL; 47 60 psArray *transformed = stacTransform(inputs, inverseMaps, errors, &transformedErrors, NULL, config); 61 62 psTrace("stac.time",1,"Transformation completed at %f seconds\n", getTime() - startTime); 48 63 49 64 // Combine with rejection … … 87 102 psFree(combined); 88 103 89 // Check memory for leaks, corruption 104 psTrace("stac.time",1,"Combination completed at %f seconds\n", getTime() - startTime); 105 106 // Check memory for leaks, corruption 90 107 stacCheckMemory(); 91 108 }
Note:
See TracChangeset
for help on using the changeset viewer.
