some cleanup pre CR

This commit is contained in:
ZappoMan 2013-05-06 16:18:30 -07:00
parent 94529d54e8
commit 239aa1ed49
2 changed files with 5 additions and 9 deletions

View file

@ -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();

View file

@ -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();
};