mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
express: Protect clock debug print with is_debug() check
This commit is contained in:
parent
8ad4234df8
commit
32b78a382a
@ -243,10 +243,12 @@ correct_time(double time) {
|
|||||||
// backward in the high-precision clock, since this does appear to happen
|
// backward in the high-precision clock, since this does appear to happen
|
||||||
// in a threaded environment.
|
// in a threaded environment.
|
||||||
|
|
||||||
|
if (clock_cat.is_debug()) {
|
||||||
clock_cat.debug()
|
clock_cat.debug()
|
||||||
<< "Clock error detected; elapsed time " << time_delta
|
<< "Clock error detected; elapsed time " << time_delta
|
||||||
<< "s on high-resolution counter, and " << tod_delta
|
<< "s on high-resolution counter, and " << tod_delta
|
||||||
<< "s on time-of-day clock.\n";
|
<< "s on time-of-day clock.\n";
|
||||||
|
}
|
||||||
++_error_count;
|
++_error_count;
|
||||||
|
|
||||||
// If both are negative, we call it 0. If one is negative, we trust the
|
// If both are negative, we call it 0. If one is negative, we trust the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user