Changeset 5134 for trunk/psphot/src/psLibUtils.c
- Timestamp:
- Sep 26, 2005, 9:49:41 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psLibUtils.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psLibUtils.c
r5048 r5134 8 8 // XXX EAM : these utility functions should be added back into PSLib 9 9 10 # if (0) // now in psLib (v8) 10 11 static psHash *timers = NULL; 11 12 bool psTimerClear (char *name) {13 14 bool status;15 16 if (name == NULL) return false;17 18 status = psHashRemove (timers, name);19 return (status);20 }21 22 void psTimerFree () {23 24 psFree (timers);25 p_psTimeFinalize();26 return;27 }28 12 29 13 // start/restart a named timer … … 40 24 } 41 25 26 bool psTimerClear (char *name) { 27 28 bool status; 29 30 if (name == NULL) return false; 31 32 status = psHashRemove (timers, name); 33 return (status); 34 } 35 42 36 // get current elapsed time on named timer 43 37 psF64 psTimerMark (char *name) { … … 60 54 } 61 55 56 void psTimerFree () { 57 58 psFree (timers); 59 p_psTimeFinalize(); 60 return; 61 } 62 # endif 63 64 # if (0) 62 65 // find the location of the specified argument 63 66 int psArgumentGet (int argc, char **argv, char *arg) { … … 87 90 return (N); 88 91 } 92 # endif 89 93 90 94 // we have log levels 1 (Error), 2 (Warning), 3 (Info), 4 (Details), 5 (Minutiae) … … 276 280 } 277 281 282 # if (0) 283 // now in psLib (v8) 278 284 // count number of pixels with given mask value 279 285 int psImageCountPixelMask (psImage *mask, psU8 value) … … 290 296 return (Npixels); 291 297 } 298 # endif 292 299 293 300 // define a square region centered on the given coordinate … … 438 445 # endif 439 446 447 # if (0) 440 448 psVector *psVectorCreate (double lower, double upper, double delta, psElemType type) { 441 449 … … 450 458 return (out); 451 459 } 460 # endif 452 461 453 462 // XXX EAM a utility function
Note:
See TracChangeset
for help on using the changeset viewer.
