From 239aa1ed49692580f362c4a5f4b39630dbd18c67 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Mon, 6 May 2013 16:18:30 -0700 Subject: [PATCH] some cleanup pre CR --- libraries/shared/src/PerfStat.cpp | 8 -------- libraries/shared/src/PerfStat.h | 6 +++++- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/libraries/shared/src/PerfStat.cpp b/libraries/shared/src/PerfStat.cpp index 85e96ea4db..5f48813c3b 100644 --- a/libraries/shared/src/PerfStat.cpp +++ b/libraries/shared/src/PerfStat.cpp @@ -104,14 +104,6 @@ int PerfStat::DumpStats(char** array) { } -// Constructor handles starting the warning timer -PerformanceWarning::PerformanceWarning(bool renderWarnings, const char* message) { - _start = usecTimestampNow(); - _message = message; - _renderWarningsOn = renderWarnings; - // need to also store the args... -} - // Destructor handles recording all of our stats PerformanceWarning::~PerformanceWarning() { double end = usecTimestampNow(); diff --git a/libraries/shared/src/PerfStat.h b/libraries/shared/src/PerfStat.h index f52a3ec49c..09d351a11b 100644 --- a/libraries/shared/src/PerfStat.h +++ b/libraries/shared/src/PerfStat.h @@ -88,7 +88,11 @@ private: const char* _message; bool _renderWarningsOn; public: - PerformanceWarning(bool renderWarnings, const char* message); + PerformanceWarning(bool renderWarnings, const char* message) : + _start(usecTimestampNow()), + _message(message), + _renderWarningsOn(renderWarnings) { }; + ~PerformanceWarning(); };