X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FProfiler.hh;fp=src%2Fprofiler.hh;h=40199df3e27706404b9177bc31c122c5ed30d45c;hp=7b38e52ea880fbeb2f241d459733b632d23283df;hb=c2321281bf12a7efaedde930422c7ddbc92080d4;hpb=87bc17e55b0c1dc73ecc66df856d3f08fd7a7724 diff --git a/src/profiler.hh b/src/Moof/Profiler.hh similarity index 91% rename from src/profiler.hh rename to src/Moof/Profiler.hh index 7b38e52..40199df 100644 --- a/src/profiler.hh +++ b/src/Moof/Profiler.hh @@ -26,27 +26,27 @@ *******************************************************************************/ -#ifndef _PROFILER_HH_ -#define _PROFILER_HH_ +#ifndef _MOOF_PROFILER_HH_ +#define _MOOF_PROFILER_HH_ /** - * @file profiler.hh + * @file Profiler.hh * Braindead-simple profiler. */ #include -namespace dc { +namespace Mf { -class profiler +class Profiler { public: - profiler(const char* name = "") + Profiler(const char* name = "") { start(name); } - ~profiler() + ~Profiler() { stop(); } @@ -74,10 +74,10 @@ private: std::clock_t begin; }; -} // namespace dc +} // namespace Mf -#endif // _PROFILER_HH_ +#endif // _MOOF_PROFILER_HH_ /** vim: set ts=4 sw=4 tw=80: *************************************************/