Changeset 4ea7b59 in tol


Ignore:
Timestamp:
Mar 4, 2011, 5:15:32 PM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
1027aba
Parents:
240ad0a
Message:

Fixes #1115

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@3266 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tol
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tol/bbasic/timer.cpp

    r240ad0a r4ea7b59  
    373373{
    374374  Std(Out() + "\n\nTotal Program Time = " + totalProgramTime_.Txt() +
    375 "\n=============================================================================="
    376 "\nNum  |Process                       |Called     |CPU       |Seconds |Average "
    377 "\n==============================================================================");
     375"\n====================================================================================="
     376"\nNum   |Process                        |Called      |CPU        |Seconds  |Average    "
     377"\n=====================================================================================");
    378378  for(BInt n=0; n<=processNumber_; n++)
    379379  {
    380380    BText  pro = processRegister_[n];
    381     BInt  num = *(callNumberRegister_[n]);
    382     BInt   cpu = (BInt)(*(cpuTimeRegister_[n]));
    383     BInt  sec = BInt(BTimer::ClockToSecond(cpu));
    384     BReal  avr = round(sec/num);
     381    double num = *(callNumberRegister_[n]);
     382    double cpu = *(cpuTimeRegister_[n]);
     383    double sec = BInt(BTimer::ClockToSecond(cpu));
     384    double avr = sec/num;
    385385    BText    nPad;   nPad << n;     nPad =   nPad. LeftPad( 4, ' ') + " |";
    386386    BText  proPad; proPad << pro; proPad = proPad.RightPad(29, ' ') + " |";
    … …  
    392392  }
    393393 Std(
    394 "\n==============================================================================");
    395 }
     394"\n=====================================================================================");
     395}
  • tol/btol/bgrammar/nameblock.cpp

    r240ad0a r4ea7b59  
    13461346    this->flags_.calculating_ = true;
    13471347    BSet& c = Contens().Set();
     1348/*
    13481349    int i, n = c.Card();
    13491350    for(i=1; i<n; i++)
    … …  
    13541355      }
    13551356    }
     1357*/
    13561358    this->flags_.calculating_ = false;
    13571359  }
     1360
    13581361}
    13591362
  • tol/btol/set_type/setgra.cpp

    r240ad0a r4ea7b59  
    6969    this->flags_.calculating_ = true;
    7070    BSet& c = Contens();
     71/*
    7172    int i, n = c.Card();
    7273    for(i=1; i<n; i++)
    … …  
    7778      }
    7879    }
     80*/
    7981    this->flags_.calculating_ = false;
    8082  }
Note: See TracChangeset for help on using the changeset viewer.