mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 03:53:52 +02:00
some cleanup pre CR
This commit is contained in:
parent
94529d54e8
commit
239aa1ed49
2 changed files with 5 additions and 9 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue