Changeset 3b02b04 for src/dgp/main.cc
- Timestamp:
- 01/17/13 20:50:41 (12 years ago)
- Branches:
- master
- Children:
- d2f119e
- Parents:
- 555c7f8
- git-author:
- Tomasz Obrebski <to@…> (01/17/13 20:50:41)
- git-committer:
- Tomasz Obrebski <to@…> (01/17/13 20:50:41)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/dgp/main.cc
ra15e59b r3b02b04 38 38 bool printtimeinfo=false; 39 39 40 40 41 void output(); 41 42 … … 43 44 { 44 45 gengetopt_args_info args; 46 struct timeval readgrammar_starttime,readgrammar_endtime; 45 47 46 48 if(cmdline_parser(argc,argv,&args) != 0) … … 71 73 } 72 74 75 gettimeofday(&readgrammar_starttime,NULL); 76 73 77 grammar.read(grammarf); 74 78 fclose(grammarf); 75 79 80 gettimeofday(&readgrammar_endtime,NULL); 76 81 82 if(printtimeinfo) 83 fprintf(stderr,"### START TIME: %10.2fms\n", (float)MICROSECONDSELAPSED(readgrammar_starttime,readgrammar_endtime)/1000 ); 77 84 85 //////////////////////////////////////////////////////////////////////////////////////////////////// 86 // TESTOWANIE POPRAWNOŠCI ODCZYTU GRAMATYKI 78 87 // grammar.write(cout); 79 88 // exit(0); 89 //////////////////////////////////////////////////////////////////////////////////////////////////// 80 90 81 91 struct timeval starttime,afterinput,afterparse,endtime; … … 101 111 { 102 112 gettimeofday(&afterinput,NULL); 113 103 114 dgp1(); // parametry!!! MGraph, SGraph, Grammar 115 104 116 gettimeofday(&afterparse,NULL); 105 117 output();
Note: See TracChangeset
for help on using the changeset viewer.