Ticket #58: timing.patch
File timing.patch, 936 bytes (added by , 15 years ago) |
---|
-
ATOOLS/Org/MyTiming.C
9 9 using namespace ATOOLS; 10 10 11 11 namespace ATOOLS { 12 std::string FormatTime(const size_t &in,const int mode)12 std::string FormatTime(const int &intime,const int mode) 13 13 { 14 size_t in = (intime<0 ? 0 : intime); 14 15 int days(in/86400), hrs((in%86400)/3600); 15 16 int mins(((in%86400)%3600)/60), secs(((in%86400)%3600)%60); 16 17 std::string out; -
ATOOLS/Org/MyTiming.H
10 10 11 11 namespace ATOOLS { 12 12 13 std::string FormatTime(const size_t &in,const int mode=0);13 std::string FormatTime(const int &in,const int mode=0); 14 14 15 15 class MyTiming { 16 16 tms starttms, currenttms, stoptms;