Commit ed97990b authored by Robert Menzel's avatar Robert Menzel
Browse files

corrected include guards, added comments

parent b77d4d33
#ifndef PERFORMANCETIMER_HH
#define PERFORMANCETIMER_HH
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2011, Computer Graphics Group RWTH Aachen University //
// All rights reserved. //
////////////////////////////////////////////////////////////////////////////////
#include <ACGL/ACGL.hh>
#include <iostream>
#include <ctime>
#ifndef ACGL_UTILS_PERFORMANCETIMER_HH
#define ACGL_UTILS_PERFORMANCETIMER_HH
/*
* Three Timers are defined here: SystemTimer, ProcessTimer and ThreadTimer.
......@@ -18,12 +18,17 @@
*
* ProcessTime t; // automatic reset
* slowFunction();
* cout << "function took " << t.getTimeInSecondsD() << " seconds";
* log() << "function took " << t.getTimeInSecondsD() << " seconds, ";
* t.reset();
* fastFunction();
* cout << "other function took " << t.getTimeInNanoseconds() << " nanoseconds";
* log() << "other function took " << t.getTimeInNanoseconds() << " nanoseconds";
*/
#include <ACGL/ACGL.hh>
#include <iostream>
#include <ctime>
namespace ACGL{
namespace Utils{
......@@ -76,4 +81,4 @@ typedef PerformanceTimer< ((clockid_t)CLOCK_THREAD_CPUTIME_ID) > ThreadTimer;
} // Utils
} // ACGL
#endif // PERFORMANCETIMER_HH
#endif // ACGL_UTILS_PERFORMANCETIMER_HH
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment