Changeset 3b02b04 for src/dgp/main.cc


Ignore:
Timestamp:
01/17/13 20:50:41 (11 years ago)
Author:
Tomasz Obrebski <to@…>
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)
Message:

prawie ca�kiem nowe dgc, du�e zmiany w dgp, pomniejsze poprawki

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/dgp/main.cc

    ra15e59b r3b02b04  
    3838bool printtimeinfo=false; 
    3939 
     40 
    4041void output(); 
    4142 
     
    4344{ 
    4445  gengetopt_args_info args; 
     46  struct timeval readgrammar_starttime,readgrammar_endtime; 
    4547 
    4648  if(cmdline_parser(argc,argv,&args) != 0) 
     
    7173    } 
    7274 
     75  gettimeofday(&readgrammar_starttime,NULL); 
     76 
    7377  grammar.read(grammarf); 
    7478  fclose(grammarf); 
    7579 
     80  gettimeofday(&readgrammar_endtime,NULL); 
    7681 
     82  if(printtimeinfo) 
     83    fprintf(stderr,"### START  TIME: %10.2fms\n", (float)MICROSECONDSELAPSED(readgrammar_starttime,readgrammar_endtime)/1000 ); 
    7784 
     85//////////////////////////////////////////////////////////////////////////////////////////////////// 
     86// TESTOWANIE POPRAWNOŠCI ODCZYTU GRAMATYKI 
    7887  // grammar.write(cout); 
    7988  // exit(0); 
     89//////////////////////////////////////////////////////////////////////////////////////////////////// 
    8090 
    8191  struct timeval starttime,afterinput,afterparse,endtime; 
     
    101111    { 
    102112      gettimeofday(&afterinput,NULL); 
     113       
    103114      dgp1(); // parametry!!! MGraph, SGraph, Grammar 
     115 
    104116      gettimeofday(&afterparse,NULL); 
    105117      output(); 
Note: See TracChangeset for help on using the changeset viewer.