mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-29 00:23:48 +00:00
Core/Misc: update g3dlite lib (#2904)
* Core/Misc: update g3dlite lib * update Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
This commit is contained in:
15
deps/g3dlite/source/Stopwatch.cpp
vendored
15
deps/g3dlite/source/Stopwatch.cpp
vendored
@@ -105,15 +105,16 @@ void Stopwatch::reset() {
|
||||
|
||||
void Stopwatch::after(const std::string& s) {
|
||||
RealTime now = System::time();
|
||||
debugPrintf("%s: %10s - %8fs since %s (%fs since start)\n",
|
||||
myName.c_str(),
|
||||
s.c_str(),
|
||||
now - prevTime,
|
||||
prevMark.c_str(),
|
||||
now - startTime);
|
||||
if (m_enabled) {
|
||||
debugPrintf("%s: %10s - %8fs since %s (%fs since start)\n",
|
||||
myName.c_str(),
|
||||
s.c_str(),
|
||||
now - prevTime,
|
||||
prevMark.c_str(),
|
||||
now - startTime);
|
||||
}
|
||||
prevTime = now;
|
||||
prevMark = s;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user