Changeset 31033 for trunk/ippToPsps/src/InitBatch.c
- Timestamp:
- Mar 24, 2011, 11:03:32 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/src/InitBatch.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/src/InitBatch.c
r31030 r31033 59 59 InitBatch* new_InitBatch(Logger* logger, int *argc, char **argv) { 60 60 61 logger->print(logger, MSG_DEBUG, "InitBatch :Constructor\n");61 logger->print(logger, MSG_DEBUG, "InitBatch", "Constructor\n"); 62 62 InitBatch *this = (InitBatch*)calloc(1, sizeof(InitBatch)); 63 63 … … 80 80 int main(int argc, char **argv) { 81 81 82 psTimerStart("initbatch");83 84 82 // ippToPsps_VersionPrint(); 85 83 86 int exitCode;87 88 84 Logger* logger = new_Logger(NULL); 85 logger->print(logger, MSG_INFO, "main", "Creating new initialization batch\n"); 89 86 90 87 InitBatch* initBatch = new_InitBatch(logger, &argc, argv); 91 88 initBatch->base.run(initBatch); 92 exitCode = initBatch->base.exitCode;89 int exitCode = initBatch->base.exitCode; 93 90 94 91 initBatch->destroy(initBatch); 95 92 96 double secs = psTimerMark("initbatch");97 98 logger->print(logger, MSG_INFO, "initbatch completed %ssuccessfully, with exit code %d, in %.1f %s\n",99 (exitCode == PS_EXIT_SUCCESS) ? "" : "un",100 exitCode,101 (secs<60.0) ? secs : (secs/60.0),102 (secs<60.0) ? "sec(s)" : "min(s)");103 93 104 94 // tidy up 105 psTimerStop();106 95 psLibFinalize(); 107 96 logger->destroy(logger);
Note:
See TracChangeset
for help on using the changeset viewer.
