ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/freemol/branches/sync4pymol12/src/mengine/src/mengine.c
(Generate patch)
# Line 27 | Line 27
27   #include <stdlib.h>
28   #include <unistd.h>
29   #include <string.h>
30 + #include <time.h>
31   //#include <malloc.h>
32  
33   struct t_minim_values {
# Line 85 | Line 86
86  
87      int c;
88      int flags = 0;
89 +    clock_t start_time,end_time;
90  
91      while ((c = getopt(argc, argv, "e:o:p:c:havdxi")) != -1) {
92        switch(c) {
# Line 184 | Line 186
186      minim_values.iprint = 0; //FALSE;
187      /* run the job */
188  
189 +    start_time = clock();
190      if (infile) {
191        read_gmmxinp(mmff94filename, infile, flags);
192      }
193 <
193 >    end_time = clock();
194 > #ifdef KEG_DEBUG
195 >    printf("Job time: %lu ticks\n",(end_time - start_time));
196 > #endif
197      /* release temporary strings */
198  
199      if(infilename) free(infilename);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines