sherpa is hosted by Hepforge, IPPP Durham
close Warning: Can't synchronize with repository "(default)" (/hepforge/svn/sherpa does not appear to be a Subversion repository.). Look in the Trac log for more information.

Ticket #58: timing.patch

File timing.patch, 936 bytes (added by Frank Siegert, 15 years ago)
  • ATOOLS/Org/MyTiming.C

     
    99using namespace ATOOLS;
    1010
    1111namespace ATOOLS {
    12 std::string FormatTime(const size_t &in,const int mode)
     12std::string FormatTime(const int &intime,const int mode)
    1313{
     14  size_t in = (intime<0 ? 0 : intime);
    1415  int days(in/86400), hrs((in%86400)/3600);
    1516  int mins(((in%86400)%3600)/60), secs(((in%86400)%3600)%60);
    1617  std::string out;
  • ATOOLS/Org/MyTiming.H

     
    1010
    1111namespace ATOOLS {
    1212
    13   std::string FormatTime(const size_t &in,const int mode=0);
     13  std::string FormatTime(const int &in,const int mode=0);
    1414
    1515  class MyTiming {
    1616    tms starttms, currenttms, stoptms;