Skip to content
Snippets Groups Projects
Commit 706ae547 authored by Christian Beckmann's avatar Christian Beckmann
Browse files

*** empty log message ***

parent 05c75007
No related branches found
No related tags found
No related merge requests found
...@@ -51,8 +51,8 @@ namespace Utilities{ ...@@ -51,8 +51,8 @@ namespace Utilities{
void start() {start_time = clock();} void start() {start_time = clock();}
void end() {time_taken += clock()-start_time; times_called++;} void end() {time_taken += clock()-start_time; times_called++;}
friend comparer_name; friend class comparer_name;
friend comparer_time_taken; friend class comparer_time_taken;
friend ostream& operator<<(ostream& ostr, const TimingFunction* t); friend ostream& operator<<(ostream& ostr, const TimingFunction* t);
protected: protected:
...@@ -70,7 +70,7 @@ namespace Utilities{ ...@@ -70,7 +70,7 @@ namespace Utilities{
inline ostream& operator<<(ostream& ostr, const TimingFunction* t) inline ostream& operator<<(ostream& ostr, const TimingFunction* t)
{ {
ostr << "<tr><td>" << t->str; ostr << "<tr><td>" << t->str;
ostr.setf(0, ios::floatfield); ostr.setf(std::_Ios_Fmtflags(0),ios::floatfield);
ostr << "<td align=center>" << float(t->time_taken)/CLOCKS_PER_SEC; ostr << "<td align=center>" << float(t->time_taken)/CLOCKS_PER_SEC;
ostr.setf(ios::scientific, ios::floatfield); ostr.setf(ios::scientific, ios::floatfield);
ostr << "<td align=center>" << t->times_called << "<td align=center>" << (t->time_taken/float(t->times_called))/CLOCKS_PER_SEC; ostr << "<td align=center>" << t->times_called << "<td align=center>" << (t->time_taken/float(t->times_called))/CLOCKS_PER_SEC;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment