mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Add questionable workaround for env lock contention
This commit is contained in:
parent
5f308deb50
commit
c1ea49940b
5 changed files with 65 additions and 5 deletions
|
@ -35,7 +35,7 @@ u64 TimeTaker::stop(bool quiet)
|
|||
if (m_result != nullptr) {
|
||||
(*m_result) += dtime;
|
||||
} else {
|
||||
if (!quiet) {
|
||||
if (!quiet && !m_name.empty()) {
|
||||
infostream << m_name << " took "
|
||||
<< dtime << TimePrecision_units[m_precision] << std::endl;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue